ActivityControlLayoutContainer

public struct ActivityControlLayoutContainer<Data, ID, Content> : View where Data : RandomAccessCollection, ID : Hashable, Content : View

Undocumented

  • Declaration

    Swift

    public var body: some View { get }
  • Creates an instance that uniquely identifies views across updates based on the id key path to a property on an underlying data element.

    Declaration

    Swift

    init(_ data: Data, id: KeyPath<Data.Element, ID>, content: @escaping (Data.Element) -> Content)

    Parameters

    data

    A collection of data.

    id

    Key path to a property on an underlying data element.

    content

    A function that can be used to generate content on demand given underlying data.

Available where ID == Data.Element.ID, Data.Element: Identifiable

  • Creates an instance that uniquely identifies views across updates based on the identity of the underlying data element.

    Declaration

    Swift

    init(_ data: Data, content: @escaping (Data.Element) -> Content)

    Parameters

    data

    A collection of identified data.

    content

    A function that can be used to generate content on demand given underlying data.