SwiftstructWidgetKit
WidgetPreferredColorSchemeModifier
struct WidgetKit.WidgetPreferredColorSchemeModifier
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolSwiftUI.ViewModifier
Members 4
- field
var __contentPreferredColorScheme: SwiftUI.LazyState<SwiftUI.ColorScheme?> - field
var _allowsContentPreferredColorScheme: SwiftUI.Environment<Bool> - field
var _colorScheme: SwiftUI.Environment<SwiftUI.ColorScheme> - typealias
typealias Body = SwiftUI.ModifiedContent<SwiftUI.ModifiedContent<SwiftUI._ViewModifier_Content<WidgetKit.WidgetPreferredColorSchemeModifier>, SwiftUI._EnvironmentKeyWritingModifier<SwiftUI.ColorScheme>>, SwiftUI._PreferenceActionModifier<SwiftUI.PreferredColorSchemeKey>>
Header
struct WidgetPreferredColorSchemeModifier { // synthesized from the backing storage `_colorScheme`; the property's own accessors are stripped @SwiftUI.Environment var colorScheme: SwiftUI.ColorScheme { get } // synthesized from the backing storage `_allowsContentPreferredColorScheme`; the property's own accessors are stripped @SwiftUI.Environment var allowsContentPreferredColorScheme: Swift.Bool { get } // synthesized from the backing storage `__contentPreferredColorScheme`; the property's own accessors are stripped @SwiftUI.LazyState var _contentPreferredColorScheme: SwiftUI.ColorScheme? { get set } }