SwiftstructAppStoreKit

struct AppStoreKit.ItemLayoutContext

Members 16

  1. fieldlet componentLayoutOptions: AppStoreKit.ComponentLayoutOptions
  2. fieldlet index: Int+0x0
  3. fieldlet item: JetEngine.ReadOnlyLens<JetEngine.ComponentModel>
  4. fieldlet metadata: AppStoreKit.ItemLayoutContext.Metadata
  5. fieldlet parentShelfLayoutContext: AppStoreKit.ShelfLayoutContext
  6. functypedModel<A>(as: A.Type) -> A?
  7. functypedModel<A>(is: A.Type) -> Bool
  8. functypedState<A where A: JetEngine.Stateful>(as: A.Type) -> JetEngine.StateLens<A>
  9. functypedWritableState<A where A: JetEngine.Stateful>(as: A.Type) -> JetEngine.WritableStateLens<A>
  10. funcwithUpdatedLayoutOptions((inout AppStoreKit.ComponentLayoutOptions) -> AppStoreKit.ComponentLayoutOptions) -> AppStoreKit.ItemLayoutContext
  11. subscriptsubscript.getter : <A>(dynamicMember: KeyPath<AppStoreKit.ShelfLayoutContext, A>) -> A
  12. varvar id: AnyHashable { get }
  13. varvar indexPath: Foundation.IndexPath { get }
  14. varvar mutableState: JetEngine.WritableStateLens<Never> { get }
  15. varvar sectionIndex: Int { get }
  16. varvar state: JetEngine.StateLens<Never> { get }
@dynamicMemberLookup
struct ItemLayoutContext {
    struct MetadataKey<A> where A: Swift.Equatable {
        let rawValue: Swift.String

        init(_: Swift.String)
    }
    struct Metadata {
        var contents: [Swift.String : any Swift.Equatable]

        init()

        subscript<A>(_: AppStoreKit.ItemLayoutContext.MetadataKey<A>) -> A? where A: Swift.Equatable {
            get
            set
        }
    }
    let index: Swift.Int
    let item: JetEngine.ReadOnlyLens<any JetEngine.ComponentModel>
    let metadata: AppStoreKit.ItemLayoutContext.Metadata
    let componentLayoutOptions: AppStoreKit.ComponentLayoutOptions
    let parentShelfLayoutContext: AppStoreKit.ShelfLayoutContext

    var id: Swift.AnyHashable {
        get
    }
    var indexPath: Foundation.IndexPath {
        get
    }
    var mutableState: JetEngine.WritableStateLens<Swift.Never> {
        get
    }
    var sectionIndex: Swift.Int {
        get
    }
    var state: JetEngine.StateLens<Swift.Never> {
        get
    }

    func withUpdatedLayoutOptions(_: (_: inout AppStoreKit.ComponentLayoutOptions) -> AppStoreKit.ComponentLayoutOptions) -> AppStoreKit.ItemLayoutContext
    func typedModel<A>(as: A.Type) -> A?
    func typedModel<A>(is: A.Type) -> Swift.Bool
    func typedState<A>(as: A.Type) -> JetEngine.StateLens<A> where A: JetEngine.Stateful
    func typedWritableState<A>(as: A.Type) -> JetEngine.WritableStateLens<A> where A: JetEngine.Stateful

    subscript<A>(dynamicMember: Swift.KeyPath<AppStoreKit.ShelfLayoutContext, A>) -> A {
        get
    }
}