AI-generated Key Takeaways
-
GMSDayOfWeekis an enumeration representing the days of the week. -
It aligns with
NSDateComponents.weekdayindex, starting with Sunday as 1 and ending with Saturday as 7. -
The enum provides constants for each day of the week, accessible in both Swift and Objective-C.
-
Developers can use this enum to work with days of the week within the Google Maps SDK for iOS.
GMSDayOfWeek
enum GMSDayOfWeek : NSUInteger {}The fields represent individual days of the week. Matches NSDateComponents.weekday index. Refer to https://developer.apple.com/documentation/foundation/nsdatecomponents/1410442-weekday
-
Declaration
Swift
case sunday = 1Objective-C
GMSDayOfWeekSunday = 1 -
Declaration
Swift
case monday = 2Objective-C
GMSDayOfWeekMonday = 2 -
Declaration
Swift
case tuesday = 3Objective-C
GMSDayOfWeekTuesday = 3 -
Declaration
Swift
case wednesday = 4Objective-C
GMSDayOfWeekWednesday = 4 -
Declaration
Swift
case thursday = 5Objective-C
GMSDayOfWeekThursday = 5 -
Declaration
Swift
case friday = 6Objective-C
GMSDayOfWeekFriday = 6 -
Declaration
Swift
case saturday = 7Objective-C
GMSDayOfWeekSaturday = 7