SwiftclassVisualIntelligenceUI

@Observable class VisualIntelligenceUI.ContactPickerViewModel

Members 24

  1. deinitdeinit
  2. fieldlet _$observationRegistrar: Observation.ObservationRegistrar
  3. fieldvar _cascadeTask: Task<(), Never>?
  4. fieldvar _contactsSavedCount: Int
  5. fieldvar _isCascading: Bool
  6. fieldvar _lists: [VisualIntelligenceUI.ContactPickerViewModel.ContactList]
  7. fieldvar _selectedList: VisualIntelligenceUI.ContactPickerViewModel.ContactList?
  8. fieldvar _store: CNContactStore?
  9. fieldlet accountsStore: ACAccountStore?
  10. funcapply(result: VisualIntelligenceCore.AFMLookupState<VisualIntelligenceCore.STXContact>.LookupResult) -> ()
  11. funcapply(contacts: [CNMutableContact]) -> ()
  12. funccreate(VisualIntelligenceUI.PickableContact) -> ()
  13. funccreateAllContacts() -> ()
  14. funcdelete(VisualIntelligenceUI.PickableContact) -> ()
  15. funcdeleteNewContacts() -> ()
  16. funcrefetchAndReplace(_: VisualIntelligenceUI.PickableContact, with: String) -> ()
  17. funcrefreshSavedContacts() -> ()
  18. funcreset() -> ()
  19. funcupdatePickableContact(_: VisualIntelligenceUI.PickableContact, with: String) -> ()
  20. initVisualIntelligenceUI.ContactPickerViewModel.__allocating_init(items: [VisualIntelligenceUI.PickableContact]) -> VisualIntelligenceUI.ContactPickerViewModel
  21. initVisualIntelligenceUI.ContactPickerViewModel.__allocating_init() -> VisualIntelligenceUI.ContactPickerViewModel
  22. varvar contactsSavedCount: Int { get set }
  23. varvar lists: [VisualIntelligenceUI.ContactPickerViewModel.ContactList] { get set }
  24. varvar selectedList: VisualIntelligenceUI.ContactPickerViewModel.ContactList? { get set }
@Observation.Observable
class ContactPickerViewModel: VisualIntelligenceUI.PickerViewModel<VisualIntelligenceUI.PickableContact> {
    struct ContactList {
        let id: Swift.String
        let title: Swift.String

        init(id: Swift.String, title: Swift.String)
    }
    // synthesized from the storage `_store` that @Observable generated; the property's own accessors are stripped
    var store: __C.CNContactStore?
    let accountsStore: __C.ACAccountStore?
    var lists: [VisualIntelligenceUI.ContactPickerViewModel.ContactList]
    var selectedList: VisualIntelligenceUI.ContactPickerViewModel.ContactList?
    var contactsSavedCount: Swift.Int
    // synthesized from the storage `_isCascading` that @Observable generated; the property's own accessors are stripped
    var isCascading: Swift.Bool
    // synthesized from the storage `_cascadeTask` that @Observable generated; the property's own accessors are stripped
    var cascadeTask: Swift.Task<(), Swift.Never>?

    override init(items: [VisualIntelligenceUI.PickableContact])
    init()
    func apply(result: VisualIntelligenceCore.AFMLookupState<VisualIntelligenceCore.STXContact>.LookupResult)
    func apply(contacts: [__C.CNMutableContact])
    func reset()
    func create(_: VisualIntelligenceUI.PickableContact)
    func createAllContacts()
    func delete(_: VisualIntelligenceUI.PickableContact)
    func deleteNewContacts()
    func refetchAndReplace(_: VisualIntelligenceUI.PickableContact, with: Swift.String)
    func updatePickableContact(_: VisualIntelligenceUI.PickableContact, with: Swift.String)
    func refreshSavedContacts()

    deinit
}