SwiftstructHomeAccessoryControlUI
struct HomeAccessoryControlUI.ColorPicker
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolSwiftUI.View
Members 8
- field
var _brightnessTextFieldFocus: SwiftUI.FocusState<Bool> - field
var _colorPickerState: SwiftUI.StateObject<HomeAccessoryControlUI.ColorPicker.ColorPickerState> - field
var _colorScheme: SwiftUI.Environment<SwiftUI.ColorScheme> - field
var _selectedTab: SwiftUI.State<HomeAccessoryControlUI.ColorPicker.ColorPickerTab> - field
var _style: SwiftUI.Environment<HomeAccessoryControlUI.AccessoryControlsStyle> - field
var doneAction: ((HomeAccessoryControlUI.ColorPicker.ColorPickerResult) -> ())? - field
var updateBlock: ((HomeAccessoryControlUI.AccessoryControl.ColorState) -> ())? - typealias
typealias Body = SwiftUI.ModifiedContent<SwiftUI.ModifiedContent<SwiftUI.ModifiedContent<SwiftUI.ModifiedContent<SwiftUI.NavigationStack<SwiftUI.NavigationPath, SwiftUI.ModifiedContent<SwiftUI.ModifiedContent<SwiftUI.ModifiedContent<SwiftUI.ModifiedContent<SwiftUI.ModifiedContent<SwiftUI.ScrollView<SwiftUI.ModifiedContent<SwiftUI.ModifiedContent<SwiftUI.VStack<SwiftUI.VStack<SwiftUI.TupleContent<Pack{Swift.Optional<SwiftUI.ModifiedContent<SwiftUI.VStack<SwiftUI.TupleContent<Pack{SwiftUI.ModifiedContent<SwiftUI.GroupBox<SwiftUI.EmptyView, SwiftUI.ModifiedContent<SwiftUI.Toggle<SwiftUI.HStack<SwiftUI.TupleContent<Pack{SwiftUI.ModifiedContent<SwiftUI.ModifiedContent<SwiftUI.LinearGradient, SwiftUI._FrameLayout>, SwiftUI._MaskAlignmentEffect<SwiftUI.ModifiedContent<SwiftUI.Image, SwiftUI._EnvironmentKeyWritingModifier<Swift.Optional<SwiftUI.Font>>>>>, SwiftUI.Text, SwiftUI.Spacer}>>>, SwiftUI.ToggleStyleModifier<SwiftUI.SwitchToggleStyle>>>, SwiftUI._ClipEffect<SwiftUI.RoundedRectangle>>, SwiftUI.ModifiedContent<SwiftUI.Text, SwiftUI._PaddingLayout>}>>, SwiftUI.AddGestureModifier<SwiftUI._EndedGesture<SwiftUI.TapGesture>, SwiftUI.SimultaneousGestureCombiner>>>, Swift.Optional<SwiftUI.TupleContent<Pack{SwiftUI.ModifiedContent<SwiftUI.GroupBox<SwiftUI.EmptyView, SwiftUI.TupleContent<Pack{SwiftUI.ModifiedContent<SwiftUI.Picker<SwiftUI.EmptyView, HomeAccessoryControlUI.ColorPicker.ColorPickerTab, SwiftUI.ForEach<Swift.Array<HomeAccessoryControlUI.ColorPicker.ColorPickerTab>, HomeAccessoryControlUI.ColorPicker.ColorPickerTab, SwiftUI.Text>>, SwiftUI.PickerStyleWriter<SwiftUI.SegmentedPickerStyle>>, SwiftUI.ModifiedContent<SwiftUI.ModifiedContent<SwiftUI.ModifiedContent<HomeAccessoryControlUI.ColorPicker.ColorPickerContent, SwiftUI._TraitWritingModifier<SwiftUI.LayoutPriorityTraitKey>>, SwiftUI._PaddingLayout>, SwiftUI.AddGestureModifier<SwiftUI._EndedGesture<SwiftUI.TapGesture>, SwiftUI.SimultaneousGestureCombiner>>}>>, SwiftUI._ClipEffect<SwiftUI.RoundedRectangle>>, SwiftUI.ModifiedContent<SwiftUI.ModifiedContent<SwiftUI.GroupBox<SwiftUI.EmptyView, SwiftUI.ModifiedContent<HomeAccessoryControlUI.ColorPicker.FooterView, SwiftUI._PaddingLayout>>, SwiftUI._ClipEffect<SwiftUI.RoundedRectangle>>, SwiftUI.AddGestureModifier<SwiftUI._EndedGesture<SwiftUI.TapGesture>, SwiftUI.SimultaneousGestureCombiner>>}>>}>>>, SwiftUI._PaddingLayout>, SwiftUI._PaddingLayout>>, SwiftUI.TransactionalPreferenceTransformModifier<SwiftUI.NavigationTitleKey>>, SwiftUI._PreferenceTransformModifier<SwiftUI.ToolbarKey>>, SwiftUI._PreferenceTransformModifier<SwiftUI.NavigationTitleKey>>, SwiftUI.SafeAreaPaddingModifier>, SwiftUI.ToolbarModifier<(), SwiftUI.TupleContent<Pack{SwiftUI.ToolbarItem<(), SwiftUI.Button<SwiftUI.DefaultButtonLabel>>, SwiftUI.ToolbarModifiedContent<SwiftUI.ToolbarItem<(), SwiftUI.Button<SwiftUI.DefaultButtonLabel>>, SwiftUI.ItemContainerTintModifier>}>>>>, SwiftUI.TransformScrollStorageModifier<SwiftUI.TransformScrollBounceBehavior>>, SwiftUI.TransformScrollStorageModifier<SwiftUI.ScrollClipTransform>>, SwiftUI._ValueActionModifier2<Swift.Optional<HomeAccessoryControlUI.AccessoryControl.ColorState>>>, SwiftUI._AppearanceActionModifier>
Header
struct ColorPicker { struct FavoriteColorCell { enum Value { case favorite(HomeDataModel.ColorPickerFavorite) case color(HomeDataModel.LightbulbColor) case addButton } // synthesized from the backing storage `_colorScheme`; the property's own accessors are stripped @SwiftUI.Environment var colorScheme: SwiftUI.ColorScheme { get } var value: HomeAccessoryControlUI.ColorPicker.FavoriteColorCell.Value var isSelected: Swift.Bool } struct FavoritesView { // synthesized from the backing storage `_colorControlState`; the property's own accessors are stripped @SwiftUI.ObservedObject var colorControlState: HomeAccessoryControlUI.ColorPicker.ColorPickerState { get set } } struct ColorTemperatureSpectrum { class Coordinator { var renderer: __C.ColorTemperatureSpectrumRenderer? } var colorHelper: HomeAccessoryControlUI.SpectrumColorHelper } struct FullColorSpectrum { struct RGBColorWheelSpace { let zeroSaturationFactor: Swift.Double let saturationExponentialFactor: Swift.Double } var colorWheelSpace: HomeAccessoryControlUI.ColorPicker.FullColorSpectrum.RGBColorWheelSpace } struct ColorSpectrumView { // synthesized from the backing storage `__drag`; the property's own accessors are stripped @SwiftUI.LazyState var _drag: __C.CGPoint? { get set } // synthesized from the backing storage `__isDragging`; the property's own accessors are stripped @SwiftUI.LazyState var _isDragging: Swift.Bool { get set } let spectrum: any HomeAccessoryControlUI.ColorPickerSpectrum let lensSize: __C.CGSize // synthesized from the backing storage `_colorControlState`; the property's own accessors are stripped @SwiftUI.ObservedObject var colorControlState: HomeAccessoryControlUI.ColorPicker.ColorPickerState { get set } } struct BrightnessSlider { // synthesized from the backing storage `_textFieldWidth`; the property's own accessors are stripped @SwiftUI.ScaledMetric var textFieldWidth: CoreGraphics.CGFloat { get } // synthesized from the backing storage `_colorControlState`; the property's own accessors are stripped @SwiftUI.ObservedObject var colorControlState: HomeAccessoryControlUI.ColorPicker.ColorPickerState { get set } var textFieldFocus: SwiftUI.FocusState<Swift.Bool>.Binding } struct Slider { // synthesized from the backing storage `_value`; the property's own accessors are stripped @SwiftUI.Binding var value: Swift.Double { get set } // synthesized from the backing storage `_layoutDirection`; the property's own accessors are stripped @SwiftUI.Environment var layoutDirection: SwiftUI.LayoutDirection { get } // synthesized from the backing storage `_colorScheme`; the property's own accessors are stripped @SwiftUI.Environment var colorScheme: SwiftUI.ColorScheme { get } var currentColor: SwiftUI.Color let strokeWidth: CoreGraphics.CGFloat } struct ColorLens { let color: SwiftUI.Color? var isPressed: Swift.Bool } enum ColorPickerResult { case cancel case done } enum ColorPickerTab { case grid case spectrum case temperature } struct FooterView { // synthesized from the backing storage `_colorPickerState`; the property's own accessors are stripped @SwiftUI.ObservedObject var colorPickerState: HomeAccessoryControlUI.ColorPicker.ColorPickerState { get set } // synthesized from the backing storage `_debug`; the property's own accessors are stripped @SwiftUI.Environment var debug: Swift.Bool { get } var brightnessTextFieldFocus: SwiftUI.FocusState<Swift.Bool>.Binding } struct ColorPickerContent { // synthesized from the backing storage `_colorPickerState`; the property's own accessors are stripped @SwiftUI.ObservedObject var colorPickerState: HomeAccessoryControlUI.ColorPicker.ColorPickerState { get set } // synthesized from the backing storage `_selectedTab`; the property's own accessors are stripped @SwiftUI.Binding var selectedTab: HomeAccessoryControlUI.ColorPicker.ColorPickerTab { get set } } struct ColorSwatchPickerView { struct ColorPreferenceData { var color: HomeDataModel.LightbulbColor var bounds: SwiftUI.Anchor<__C.CGRect> var position: (x: Swift.Int, y: Swift.Int) } enum CellValue { case lightBulbColor(color: HomeDataModel.LightbulbColor) case placeholder } struct ColorPreferenceKey {} struct ColorCell { // synthesized from the backing storage `_colorPickerState`; the property's own accessors are stripped @SwiftUI.EnvironmentObject var colorPickerState: HomeAccessoryControlUI.ColorPicker.ColorPickerState { get } // synthesized from the backing storage `_debug`; the property's own accessors are stripped @SwiftUI.Environment var debug: Swift.Bool { get } var color: HomeAccessoryControlUI.ColorPicker.ColorSwatchPickerView.CellValue var position: (x: Swift.Int, y: Swift.Int) } struct AccessibilitySelectionState { var selectedColor: HomeDataModel.LightbulbColor? var color: HomeDataModel.LightbulbColor } // synthesized from the backing storage `_colorPickerState`; the property's own accessors are stripped @SwiftUI.ObservedObject var colorPickerState: HomeAccessoryControlUI.ColorPicker.ColorPickerState { get set } } struct ColorWell { // synthesized from the backing storage `_colorScheme`; the property's own accessors are stripped @SwiftUI.Environment var colorScheme: SwiftUI.ColorScheme { get } var color: SwiftUI.Color? var opacity: Swift.Double } struct Triangle {} class ColorPickerState { let initialColorState: HomeAccessoryControlUI.AccessoryControl.ColorState? let supportsColorTemperature: Swift.Bool let deviceConfig: HomeAccessoryControlUI.AccessoryControl.ColorPickerConfig? // synthesized from the backing storage `_colorState`; the property's own accessors are stripped @Combine.Published var colorState: HomeAccessoryControlUI.AccessoryControl.ColorState? { get set } // synthesized from the backing storage `_favoriteColors`; the property's own accessors are stripped @Combine.Published var favoriteColors: [HomeDataModel.ColorPickerFavorite] { get set } // synthesized from the backing storage `_brightness`; the property's own accessors are stripped @Combine.Published var brightness: Swift.Double { get set } // synthesized from the backing storage `_selectedColor`; the property's own accessors are stripped @Combine.Published var selectedColor: HomeDataModel.LightbulbColor { get set } // synthesized from the backing storage `_adaptiveLightEnabled`; the property's own accessors are stripped @Combine.Published var adaptiveLightEnabled: Swift.Bool { get set } } // 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 `_style`; the property's own accessors are stripped @SwiftUI.Environment var style: HomeAccessoryControlUI.AccessoryControlsStyle { get } // synthesized from the backing storage `_colorPickerState`; the property's own accessors are stripped @SwiftUI.StateObject var colorPickerState: HomeAccessoryControlUI.ColorPicker.ColorPickerState { get } // synthesized from the backing storage `_selectedTab`; the property's own accessors are stripped @SwiftUI.State var selectedTab: HomeAccessoryControlUI.ColorPicker.ColorPickerTab { get set } var updateBlock: ((_: HomeAccessoryControlUI.AccessoryControl.ColorState) -> ())? var doneAction: ((_: HomeAccessoryControlUI.ColorPicker.ColorPickerResult) -> ())? // synthesized from the backing storage `_brightnessTextFieldFocus`; the property's own accessors are stripped @SwiftUI.FocusState var brightnessTextFieldFocus: Swift.Bool { get set } }