ViewConfigurationState
A structure that encapsulates a view’s state.
public struct ViewConfigurationState: ConfigurationState
Inheritance
ConfigurationState
, CustomDebugStringConvertible
, CustomReflectable
, CustomStringConvertible
, Hashable
Initializers
init(traitCollection:)
public init(traitCollection: TraitCollection)
Properties
traitCollection
The traits that describe the current layout environment of the view, such as the user interface style and layout direction.
public var traitCollection: TraitCollection
isSelected
A boolean value that indicates whether the view is in a selected state.
public var isSelected: Bool
isHighlighted
A boolean value that indicates whether the view is in a highlighted state.
public var isHighlighted: Bool
isFocused
A boolean value that indicates whether the view is in a focused state.
public var isFocused: Bool
isDisabled
A boolean value that indicates whether the view is in a disabled state.
public var isDisabled: Bool
description
public var description: String
debugDescription
public var debugDescription: String
customMirror
public var customMirror: Mirror
Methods
hash(into:)
public func hash(into hasher: inout Hasher)
Operators
==
public static func ==(_ lhs: ViewConfigurationState,
_ rhs: ViewConfigurationState) -> Bool