AddressSuggestion
struct AddressSuggestion
extension AddressSuggestion : Decodable, Encodable, Equatable, Hashable, Suggestion
Undocumented
-
An id associated with the suggestion. Ex: placeId for Google Places API.
Declaration
Swift
var id: String { get }
-
Creates a new instance by decoding from the given decoder.
This initializer throws an error if reading from the decoder fails, or if the data read is corrupted or otherwise invalid.
Declaration
Swift
init(from decoder: Decoder) throws
-
Is the suggestion selected.
Declaration
Swift
var isSelected: Bool { get }
-
The primary suggestion text to display. Ex: “Address Line 1”.
Declaration
Swift
let mainText: String
-
The secondary suggestion text to display. Ex: “City, State, Country”.
Declaration
Swift
let secondaryText: String?
-
The image name usually retrieved from assets.
Declaration
Swift
var suggestionImageName: String? { get }