SwiftclassVisualIntelligenceUI

@Observable class VisualIntelligenceUI.PickerViewModel

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

inherits{}

Members 11

  1. deinitdeinit
  2. fieldlet _$observationRegistrar: Observation.ObservationRegistrar
  3. fieldvar _items: [A]+0x10
  4. funcdeselectAll() -> ()
  5. funcselectAll() -> ()
  6. functoggleSelection(for: A) -> Int?
  7. initVisualIntelligenceUI.PickerViewModel.__allocating_init(items: [A]) -> VisualIntelligenceUI.PickerViewModel<A>
  8. varvar areAllSelected: Bool { get }
  9. varvar items: [A] { get set }
  10. varvar selectedCount: Int { get }
  11. varvar selectedItems: [A] { get }
@Observation.Observable
class PickerViewModel<A> where A: VisualIntelligenceUI.Pickable {
    var items: [A]

    init(items: [A])
    var areAllSelected: Swift.Bool {
        get
    }
    var selectedCount: Swift.Int {
        get
    }
    var selectedItems: [A] {
        get
    }
    func deselectAll()
    func selectAll()
    func toggleSelection(for: A) -> Swift.Int?

    deinit
}