ControlState
public struct ControlState : OptionSet
extension ControlState: Hashable
Data types for ControlState
. Equivalent to UIControl.State
.
-
Declaration
Swift
public let rawValue: UInt
-
Initialization
Declaration
Swift
public init(rawValue: UInt)
-
Normal UI control state
Declaration
Swift
public static let normal: ControlState
-
Highlighted UI control state
Declaration
Swift
public static let highlighted: ControlState
-
Disabled UI control state
Declaration
Swift
public static let disabled: ControlState
-
Selected UI control state
Declaration
Swift
public static let selected: ControlState
-
Focused UI control state
Declaration
Swift
public static let focused: ControlState
-
Read-Only control state
Declaration
Swift
public static let readOnly: ControlState
-
Extends
UIControl.State
to beHashable
Declaration
Swift
public func hash(into hasher: inout Hasher)