SwiftclassVisualIntelligenceUI
ContactPickerViewModel
@Observable class VisualIntelligenceUI.ContactPickerViewModel
Members 24
- deinit
deinit - field
let _$observationRegistrar: Observation.ObservationRegistrar - field
var _cascadeTask: Task<(), Never>? - field
var _contactsSavedCount: Int - field
var _isCascading: Bool - field
var _lists: [VisualIntelligenceUI.ContactPickerViewModel.ContactList] - field
var _selectedList: VisualIntelligenceUI.ContactPickerViewModel.ContactList? - field
var _store: CNContactStore? - field
let accountsStore: ACAccountStore? - func
apply(result: VisualIntelligenceCore.AFMLookupState<VisualIntelligenceCore.STXContact>.LookupResult) -> () - func
apply(contacts: [CNMutableContact]) -> () - func
create(VisualIntelligenceUI.PickableContact) -> () - func
createAllContacts() -> () - func
delete(VisualIntelligenceUI.PickableContact) -> () - func
deleteNewContacts() -> () - func
refetchAndReplace(_: VisualIntelligenceUI.PickableContact, with: String) -> () - func
refreshSavedContacts() -> () - func
reset() -> () - func
updatePickableContact(_: VisualIntelligenceUI.PickableContact, with: String) -> () - init
VisualIntelligenceUI.ContactPickerViewModel.__allocating_init(items: [VisualIntelligenceUI.PickableContact]) -> VisualIntelligenceUI.ContactPickerViewModel - init
VisualIntelligenceUI.ContactPickerViewModel.__allocating_init() -> VisualIntelligenceUI.ContactPickerViewModel - var
var contactsSavedCount: Int { get set } - var
var lists: [VisualIntelligenceUI.ContactPickerViewModel.ContactList] { get set } - var
var selectedList: VisualIntelligenceUI.ContactPickerViewModel.ContactList? { get set }
Header
@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 }