AI-generated Key Takeaways
-
GMSDayOfWeek
is an enumeration representing the days of the week. -
It aligns with
NSDateComponents.weekday
index, 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 = 1
Objective-C
GMSDayOfWeekSunday = 1
-
Declaration
Swift
case monday = 2
Objective-C
GMSDayOfWeekMonday = 2
-
Declaration
Swift
case tuesday = 3
Objective-C
GMSDayOfWeekTuesday = 3
-
Declaration
Swift
case wednesday = 4
Objective-C
GMSDayOfWeekWednesday = 4
-
Declaration
Swift
case thursday = 5
Objective-C
GMSDayOfWeekThursday = 5
-
Declaration
Swift
case friday = 6
Objective-C
GMSDayOfWeekFriday = 6
-
Declaration
Swift
case saturday = 7
Objective-C
GMSDayOfWeekSaturday = 7