Unit

struct Unit : OptionSet
  • Convenience initializer for converting from a RSDDurationUnit set to an NSCalendar.Unit

    Declaration

    Swift

    public init(durationUnits: Set<UnitDuration>)
  • Convenience initializer for converting from a Calendar.Component set to an NSCalendar.Unit

    Declaration

    Swift

    public init(calendarComponents: Set<Calendar.Component>)