ForEach
public struct ForEach : Shortcut
A structure that computes shortcuts from an underlying collection of data.
-
Declaration
Swift
public typealias Body = Never -
Declaration
Swift
public var body: Never { get } -
Initializes the shortcut.
Declaration
Swift
public init<Data>(_ data: Data) where Data : Collection, Data.Element : ShortcutParameters
dataA collection of shortcuts.
-
Initializes the shortcut.
Declaration
Swift
public init<Data, Content>(_ data: Data, @ShortcutBuilder content: (Data.Element) -> Content) where Data : Collection, Content : ShortcutParameters
dataThe data that the
ForEachvalue uses to create shortcuts.contentThe shortcut builder that creates shortcuts.
View on GitHub
ForEach Structure Reference