SwiftclassJetUI
ShelvesPresenter
class JetUI.ShelvesPresenter
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolJetEngine.AnyPresenter
- protocolJetUI.DiffableDataPresenter
Members 17
- deinit
deinit - field
let onApplySnapshot: JetEngine.AsyncEvent<UIKit.NSDiffableDataSourceSnapshot<JetEngine.DiffableLens<A>, JetEngine.DiffableLens<JetEngine.ComponentModel>>>+0x20 - field
var shelves: [A]+0x18 - field
let workQueue: OS_dispatch_queue+0x10 - func
insert<A where A == A1.Element, A1: Collection>(contentsOf: A1, at: JetUI.ShelvesPresenter<A>.InsertionPoint) -> () - func
JetUI.ShelvesPresenter< where A: JetEngine.MergeableModel>.merge<A where A == A1.Element, A1: Collection>(contentsOf: A1, handlingProblemsWith: (JetUI.ShelvesPresenter<A>< where A: JetEngine.MergeableModel>.MergeProblem) -> JetUI.ShelvesPresenter<A>< where A: JetEngine.MergeableModel>.MergeSolution) -> () - func
reapplySnapshot() -> () - func
reload<A where A1: Collection, A.ID == A1.Element>(A1) -> () - func
reloadItems<A where A1: Collection, A1.Element == AnyHashable>(A1) -> () - func
remove<A where A1: Collection, A.ID == A1.Element>(A1) -> () - func
replace<A where A == A1.Element, A1: Collection>(_: A1, handlingProblemsWith: (A.ID) -> JetUI.ShelvesPresenter<A>.ReplaceSolution) -> () - func
setContents<A where A == A1.Element, A1: Collection>(A1) -> () - func
updateEachShelf((inout A) -> ()) -> () - func
withUnsafeShelves(([A]) -> ()) -> () - init
JetUI.ShelvesPresenter.__allocating_init() -> JetUI.ShelvesPresenter<A> - typealias
typealias Item = JetEngine.ComponentModel - typealias
typealias Section = A
Header
class ShelvesPresenter<A> where A: JetEngine.ShelfModel { enum InsertionPoint { case before(A.ID) case after(A.ID) case start case end } enum ReplaceSolution { case insert(at: JetUI.ShelvesPresenter<A>.InsertionPoint) case discard } let workQueue: __C.OS_dispatch_queue var shelves: [A] let onApplySnapshot: JetEngine.AsyncEvent<UIKit.NSDiffableDataSourceSnapshot<JetEngine.DiffableLens<A>, JetEngine.DiffableLens<any JetEngine.ComponentModel>>> init() final func withUnsafeShelves(_: @escaping (_: [A]) -> ()) final func reloadItems<A1>(_: A1) where A1: Swift.Collection, A1.Element == Swift.AnyHashable final func setContents<A1>(_: A1) where A == A1.Element, A1: Swift.Collection final func reapplySnapshot() final func updateEachShelf(_: @escaping (_: inout A) -> ()) final func insert<A1>(contentsOf: A1, at: JetUI.ShelvesPresenter<A>.InsertionPoint) where A == A1.Element, A1: Swift.Collection final func reload<A1>(_: A1) where A1: Swift.Collection, A.ID == A1.Element final func remove<A1>(_: A1) where A1: Swift.Collection, A.ID == A1.Element final func replace<A1>(_: A1, handlingProblemsWith: @escaping (_: A.ID) -> JetUI.ShelvesPresenter<A>.ReplaceSolution) where A == A1.Element, A1: Swift.Collection deinit }