Instance Method
value(for:)
iOS 8.0+
iPadOS 8.0+
Mac Catalyst 8.0+
macOS 10.9+
tvOS 9.0+
watchOS 2.0+
Returns the value of one of the properties, using an enumeration value instead of a property name.
Discussion
The calendar, timeZone, isLeapMonth, and isRepeatedDay property values cannot be retrieved by this method.