ActivityControlLayoutContainer
@MainActor
public struct ActivityControlLayoutContainer<Data, ID, Content> : View where Data : RandomAccessCollection, ID : Hashable, Content : View
Undocumented
-
Declaration
Swift
@MainActor public var body: some View { get } -
Creates an instance that uniquely identifies views across updates based on the
idkey path to a property on an underlying data element.Declaration
Swift
@MainActor init(_ data: Data, id: KeyPath<Data.Element, ID>, content: @escaping (Data.Element) -> Content)Parameters
dataA collection of data.
idKey path to a property on an underlying data element.
contentA function that can be used to generate content on demand given underlying data.
-
Creates an instance that uniquely identifies views across updates based on the identity of the underlying data element.
Declaration
Swift
@MainActor init(_ data: Data, content: @escaping (Data.Element) -> Content)Parameters
dataA collection of identified data.
contentA function that can be used to generate content on demand given underlying data.