The raw type that can be used to represent all values of the conforming
type.
Every distinct value of the conforming type has a corresponding unique
value of the RawValue type, but there may be values of the RawValue
type that don’t have a corresponding value of the conforming type.
Creates a new instance with the specified raw value.
If there is no value of the type that corresponds with the specified raw
value, this initializer returns nil. For example:
enumPaperSize:String{caseA4,A5,Letter,Legal}print(PaperSize(rawValue:"Legal"))// Prints "Optional(PaperSize.Legal)"print(PaperSize(rawValue:"Tabloid"))// Prints "nil"
A new instance initialized with rawValue will be equivalent to this
instance. For example:
enumPaperSize:String{caseA4,A5,Letter,Legal}letselectedSize=PaperSize.Letterprint(selectedSize.rawValue)// Prints "Letter"print(selectedSize==PaperSize(rawValue:selectedSize.rawValue)!)// Prints "true"
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-14 UTC."],[[["\u003cp\u003e\u003ccode\u003eOpenNowStatus\u003c/code\u003e is an enum in GooglePlacesSwift that describes if a place is currently open.\u003c/p\u003e\n"],["\u003cp\u003eIt has three possible states: \u003ccode\u003eyes\u003c/code\u003e (open), \u003ccode\u003eno\u003c/code\u003e (closed), and \u003ccode\u003eunknown\u003c/code\u003e (open status is unclear).\u003c/p\u003e\n"],["\u003cp\u003eThe raw value of this enum is an Integer.\u003c/p\u003e\n"],["\u003cp\u003eYou can create an \u003ccode\u003eOpenNowStatus\u003c/code\u003e instance using its raw value.\u003c/p\u003e\n"]]],[],null,["OpenNowStatus \n\n enum OpenNowStatus\n\n extension OpenNowStatus : Copyable, Equatable, Escapable, Hashable, RawRepresentable\n\nDescribes the current open status of a place.\n- `\n ``\n ``\n `\n\n [RawValue](#/s:17GooglePlacesSwift13OpenNowStatusO8RawValuea)`\n ` \n The raw type that can be used to represent all values of the conforming\n type.\n\n Every distinct value of the conforming type has a corresponding unique\n value of the `RawValue` type, but there may be values of the `RawValue`\n type that don't have a corresponding value of the conforming type. \n\n Declaration \n Swift \n\n typealias RawValue = Int\n\n- `\n ``\n ``\n `\n\n [init(rawValue:)](#/s:17GooglePlacesSwift13OpenNowStatusO8rawValueACSgSi_tcfc)`\n ` \n Creates a new instance with the specified raw value.\n\n If there is no value of the type that corresponds with the specified raw\n value, this initializer returns `nil`. For example: \n\n enum PaperSize: String {\n case A4, A5, Letter, Legal\n }\n\n print(PaperSize(rawValue: \"Legal\"))\n // Prints \"Optional(PaperSize.Legal)\"\n\n print(PaperSize(rawValue: \"Tabloid\"))\n // Prints \"nil\"\n\n Declaration \n Swift \n\n init?(rawValue: Int)\n\n Parameters\n\n |------------------|--------------------------------------------|\n | ` `*rawValue*` ` | The raw value to use for the new instance. |\n\n- `\n ``\n ``\n `\n\n [no](#/s:17GooglePlacesSwift13OpenNowStatusO2noyA2CmF)`\n ` \n The place is not open now. \n\n Declaration \n Swift \n\n case no\n\n- `\n ``\n ``\n `\n\n [rawValue](#/s:17GooglePlacesSwift13OpenNowStatusO8rawValueSivp)`\n ` \n The corresponding value of the raw type.\n\n A new instance initialized with `rawValue` will be equivalent to this\n instance. For example: \n\n enum PaperSize: String {\n case A4, A5, Letter, Legal\n }\n\n let selectedSize = PaperSize.Letter\n print(selectedSize.rawValue)\n // Prints \"Letter\"\n\n print(selectedSize == PaperSize(rawValue: selectedSize.rawValue)!)\n // Prints \"true\"\n\n Declaration \n Swift \n\n var rawValue: Int { get }\n\n- `\n ``\n ``\n `\n\n [unknown](#/s:17GooglePlacesSwift13OpenNowStatusO7unknownyA2CmF)`\n ` \n Whether the place is open now is unknown. \n\n Declaration \n Swift \n\n case unknown\n\n- `\n ``\n ``\n `\n\n [yes](#/s:17GooglePlacesSwift13OpenNowStatusO3yesyA2CmF)`\n ` \n The place is open now. \n\n Declaration \n Swift \n\n case yes"]]