SwiftclassWritingToolsUI
AlwaysOnProofreadingSuggestionViewModel
@Observable class WritingToolsUI.AlwaysOnProofreadingSuggestionViewModel
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolObservation.Observable
Members 20
- deinit
deinit - field
let _$observationRegistrar: Observation.ObservationRegistrar - field
var _areaFrames: WritingToolsUI.AlwaysOnSuggestionPopoverAreaFrames+0x28 - field
var _currentStateIsTentative: Bool - field
var _currentSuggestionState: WTTextSuggestionState+0x10 - field
var _hoverState: WritingToolsUI.AlwaysOnSuggestionPopoverHoverState+0x24 - field
var _isGrammarCheckingEnabled: Bool+0x21 - field
var _isPressed: Bool+0x22 - field
var _lastActionUsed: SwiftUI.AppStorage<WritingToolsUI.AlwaysOnProofreadingSuggestionViewModel.Action> - field
var _requiresHoverReentry: Bool+0x23 - field
var _selectedIndex: Int+0x18 - field
var _suggestions: [WTTextSuggestion] - field
let hostBundleIdentifier: String? - field
let isCatalystHost: Bool - field
let onFeedbackAction: (WTFeedbackAction, WTTextSuggestion) -> () - field
let onNavigateFromSuggestionToSuggestion: (WTTextSuggestion, WTTextSuggestion) -> () - field
let onToggleGrammarChecking: (Bool) -> () - field
let onUpdateState: (WTTextSuggestionState, [WTTextSuggestion], Bool, Bool) -> () - field
let startedWithMultipleSuggestions: Bool+0x20 - init
WritingToolsUI.AlwaysOnProofreadingSuggestionViewModel.__allocating_init(suggestions: [WTTextSuggestion], selectedIndex: Int, isCatalystHost: Bool, hostBundleIdentifier: String?, onUpdateState: (WTTextSuggestionState, [WTTextSuggestion], Bool, Bool) -> (), onNavigateFromSuggestionToSuggestion: (WTTextSuggestion, WTTextSuggestion) -> (), onToggleGrammarChecking: (Bool) -> (), onFeedbackAction: (WTFeedbackAction, WTTextSuggestion) -> ()) -> WritingToolsUI.AlwaysOnProofreadingSuggestionViewModel
Header
@Observation.Observable class AlwaysOnProofreadingSuggestionViewModel { enum Action { case acceptAll case ignore case ignoreAll } // synthesized from the storage `_currentSuggestionState` that @Observable generated; the property's own accessors are stripped var currentSuggestionState: __C.WTTextSuggestionState // synthesized from the storage `_selectedIndex` that @Observable generated; the property's own accessors are stripped var selectedIndex: Swift.Int let startedWithMultipleSuggestions: Swift.Bool // synthesized from the storage `_isGrammarCheckingEnabled` that @Observable generated; the property's own accessors are stripped var isGrammarCheckingEnabled: Swift.Bool // synthesized from the storage `_isPressed` that @Observable generated; the property's own accessors are stripped var isPressed: Swift.Bool // synthesized from the storage `_requiresHoverReentry` that @Observable generated; the property's own accessors are stripped var requiresHoverReentry: Swift.Bool // synthesized from the storage `_hoverState` that @Observable generated; the property's own accessors are stripped var hoverState: WritingToolsUI.AlwaysOnSuggestionPopoverHoverState // synthesized from the storage `_areaFrames` that @Observable generated; the property's own accessors are stripped var areaFrames: WritingToolsUI.AlwaysOnSuggestionPopoverAreaFrames // synthesized from the backing storage `_lastActionUsed`; the property's own accessors are stripped @Observation.ObservationIgnored @SwiftUI.AppStorage var lastActionUsed: WritingToolsUI.AlwaysOnProofreadingSuggestionViewModel.Action { get set } // synthesized from the storage `_suggestions` that @Observable generated; the property's own accessors are stripped var suggestions: [__C.WTTextSuggestion] let onUpdateState: (__C.WTTextSuggestionState, [__C.WTTextSuggestion], Swift.Bool, Swift.Bool) -> () let onNavigateFromSuggestionToSuggestion: (__C.WTTextSuggestion, __C.WTTextSuggestion) -> () let onToggleGrammarChecking: (_: Swift.Bool) -> () let onFeedbackAction: (__C.WTFeedbackAction, __C.WTTextSuggestion) -> () // synthesized from the storage `_currentStateIsTentative` that @Observable generated; the property's own accessors are stripped var currentStateIsTentative: Swift.Bool let isCatalystHost: Swift.Bool let hostBundleIdentifier: Swift.String? init(suggestions: [__C.WTTextSuggestion], selectedIndex: Swift.Int, isCatalystHost: Swift.Bool, hostBundleIdentifier: Swift.String?, onUpdateState: @escaping (__C.WTTextSuggestionState, [__C.WTTextSuggestion], Swift.Bool, Swift.Bool) -> (), onNavigateFromSuggestionToSuggestion: @escaping (__C.WTTextSuggestion, __C.WTTextSuggestion) -> (), onToggleGrammarChecking: @escaping (_: Swift.Bool) -> (), onFeedbackAction: @escaping (__C.WTFeedbackAction, __C.WTTextSuggestion) -> ()) deinit }