SwiftclassWritingToolsUI

@Observable class WritingToolsUI.AlwaysOnProofreadingSuggestionViewModel

Structure

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

inherits{}

Members 20

  1. deinitdeinit
  2. fieldlet _$observationRegistrar: Observation.ObservationRegistrar
  3. fieldvar _areaFrames: WritingToolsUI.AlwaysOnSuggestionPopoverAreaFrames+0x28
  4. fieldvar _currentStateIsTentative: Bool
  5. fieldvar _currentSuggestionState: WTTextSuggestionState+0x10
  6. fieldvar _hoverState: WritingToolsUI.AlwaysOnSuggestionPopoverHoverState+0x24
  7. fieldvar _isGrammarCheckingEnabled: Bool+0x21
  8. fieldvar _isPressed: Bool+0x22
  9. fieldvar _lastActionUsed: SwiftUI.AppStorage<WritingToolsUI.AlwaysOnProofreadingSuggestionViewModel.Action>
  10. fieldvar _requiresHoverReentry: Bool+0x23
  11. fieldvar _selectedIndex: Int+0x18
  12. fieldvar _suggestions: [WTTextSuggestion]
  13. fieldlet hostBundleIdentifier: String?
  14. fieldlet isCatalystHost: Bool
  15. fieldlet onFeedbackAction: (WTFeedbackAction, WTTextSuggestion) -> ()
  16. fieldlet onNavigateFromSuggestionToSuggestion: (WTTextSuggestion, WTTextSuggestion) -> ()
  17. fieldlet onToggleGrammarChecking: (Bool) -> ()
  18. fieldlet onUpdateState: (WTTextSuggestionState, [WTTextSuggestion], Bool, Bool) -> ()
  19. fieldlet startedWithMultipleSuggestions: Bool+0x20
  20. initWritingToolsUI.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
@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
}