CPCViewSelection
public enum CPCViewSelection : EquatableA value that describes view selection mode and currently selected days simultaneously.
- 
                  
                  Selection is disabled. DeclarationSwift case none
- 
                  
                  Single day selection mode; associated value holds currently selected day or nilif selection is empty.DeclarationSwift case single(CPCDay?)
- 
                  
                  Range of dates selection mode; associated value holds currently selected days range (possibly empty). DeclarationSwift case range(CountableRange<CPCDay>)
- 
                  
                  Arbitrary set of dates selection mode; associated value holds unordered collection of selected dates (possibly empty). DeclarationSwift case unordered(Set<CPCDay>)
- 
                  
                  Arbitrary array of dates selection mode; associated value holds collection of selected dates (possibly empty) ordered the same way that user did pick them. DeclarationSwift case ordered([CPCDay])
- 
                  
                  DeclarationSwift public var description: String { get }
- 
                  
                  DeclarationSwift public var debugDescription: String { get }
- 
                  
                  Undocumented DeclarationSwift public typealias ReferenceType = _ObjectiveCType
- 
                  
                  Undocumented DeclarationSwift public typealias _ObjectiveCType = __CPCViewSelection
- 
                  
                  DeclarationSwift public func _bridgeToObjectiveC() -> __CPCViewSelection
- 
                  
                  DeclarationSwift public static func _forceBridgeFromObjectiveC(_ source: __CPCViewSelection, result: inout CPCViewSelection?)
- 
                  
                  DeclarationSwift public static func _conditionallyBridgeFromObjectiveC(_ source: __CPCViewSelection, result: inout CPCViewSelection?) -> Bool
- 
                  
                  DeclarationSwift public static func _unconditionallyBridgeFromObjectiveC(_ source: __CPCViewSelection?) -> CPCViewSelection
- 
                  
                  Check whether a day is selected given all selected days. DeclarationSwift public func isDaySelected(_ day: CPCDay) -> BoolParametersdayThe day to check for containment. Return Valuetrueif given is contained in the selection; otherwise,false.
- 
                  
                  A Boolean value indicating whether the selection does not contain any day. DeclarationSwift public var isEmpty: Bool { get }
- 
                  
                  Returns set of days contained by exactly one of given selection values. DeclarationSwift public func difference(_ other: CPCViewSelection) -> Set<CPCDay>ParametersotherSelection value to calculate difference from. Return ValueDifference between selection values. 
- 
                  
                  Returns a subset of this selection that contains days matching specified date constraints. DeclarationSwift public func clamped<R>(to datesRange: R) -> CPCViewSelection where R : CPCDateIntervalParametersdatesRangeThe limits to clamp this selection to. 
- 
                  
                  Forms union of two values and stores the result in the left-hand-side variable. DeclarationSwift public static func += (lhs: inout CPCViewSelection, rhs: CPCViewSelection)ParameterslhsThe first value to unite. rhsThe second value to unite. 
- 
                  
                  Forms union of two values and returns it leaving original values unchanged. DeclarationSwift public static func + (lhs: CPCViewSelection, rhs: CPCViewSelection) -> CPCViewSelectionParameterslhsThe first value to unite. rhsThe second value to unite. 
- 
                  
                  Subtracts from the first value days that are selected byn the second one and stores the result in the left-hand-side variable. DeclarationSwift public static func -= (lhs: inout CPCViewSelection, rhs: CPCViewSelection)ParameterslhsSelection value to subtract days from. rhsValue indicating days that should not be selected. 
- 
                  
                  Calculates selection that contains all of the left-hand-side days except those contained in right-hand-side one and returns it leaving original unchanged. DeclarationSwift public static func - (lhs: CPCViewSelection, rhs: CPCViewSelection) -> CPCViewSelectionParameterslhsSelection value to subtract days from. rhsValue indicating days that should not be selected. 
 View on GitHub
            View on GitHub
           Install in Dash
            Install in Dash
           CPCViewSelection Enumeration Reference
      CPCViewSelection Enumeration Reference