init(_:content:)
Creates dynamic instructions that produce content for each element of an identifiable collection.
Declaration
init(_ data: Data, @DynamicInstructionsBuilder content: @escaping (Data.Element) -> Content)Parameters
- data:
The collection whose elements each produce content.
- content:
A builder closure that produces the dynamic instructions for an element.
Discussion
Don’t create this type directly. Instead, use DynamicInstructions.ForEach within the body of your DynamicInstructions.