CountrySuggestion
class CountrySuggestion
extension CountrySuggestion : Comparable, Equatable, Suggestion
Undocumented
-
Returns a Boolean value indicating whether the value of the first argument is less than that of the second argument.
This function is the only requirement of the
Comparable
protocol. The remainder of the relational operator functions are implemented by the standard library for any type that conforms toComparable
.Declaration
Swift
static func < (lhs: CountrySuggestion, rhs: CountrySuggestion) -> Bool
Parameters
lhs
A value to compare.
rhs
Another value to compare.
-
Returns a Boolean value indicating whether two values are equal.
Equality is the inverse of inequality. For any values
a
andb
,a == b
implies thata != b
isfalse
.Declaration
Swift
static func == (lhs: CountrySuggestion, rhs: CountrySuggestion) -> Bool
Parameters
lhs
A value to compare.
rhs
Another value to compare.
-
An id associated with the suggestion. Ex: placeId for Google Places API.
Declaration
Swift
var id: String { get }
-
Is the suggestion selected.
Declaration
Swift
var isSelected: Bool { get }
-
The primary suggestion text to display. Ex: “Address Line 1”.
Declaration
Swift
var mainText: String { get }
-
The secondary suggestion text to display. Ex: “City, State, Country”.
Declaration
Swift
var secondaryText: String? { get }
-
The image name usually retrieved from assets.
Declaration
Swift
var suggestionImageName: String? { get }