init(_:content:)

Creates a new ForEach element with the given sequence and content builder closure.

ForEach.swift:26
init(_ sequence: Data, @HTMLBuilder content contentBuilder: @escaping (Data.Element) -> Content)
  • sequence: A sequence of data to render.

  • contentBuilder: A closure that builds the HTML content for each element in the sequence.