minimumRange(of:)
Returns the minimum range limits of the values that a given component can take on.
Declaration
func minimumRange(of component: Calendar.Component) -> Range<Int>?Parameters
- component:
A component to calculate a range for.
Return Value
The range, or nil if it could not be calculated.
Discussion
As an example, in the Gregorian calendar the minimum range of values for the Day component is 1-28.