In the XCode Playground editor, there is result views at the right hand side after the code is executed in playground. I notice that some of the displayed variable values has a description "fixed". What does "fixed" mean in this context?
Thank you!
I think posting some code can make what I am referring to clear:
It did indeed. Thanks.
In this context, the
(fixed) is not a feature of the playground but a feature of
Calendar. Consider this snippet:
import Foundation
let cal = Calendar.autoupdatingCurrentIt logs
gregorian (autoupdatingCurrent). In the world of
Calendar, there are two types of calendars:
An auto-updating calendar tracks user settings. For example, if the user goes to Settings > General > Language & Region > Calendar and changes their calendar, the auto-updating calendar will start returning results based on that new calendar.
A fixed calendar is… well… fixed. Once you create a calendar value, it will continue return results based on that calendar, regardless of any user settings changes.
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"