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
Comparableprotocol. 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) -> BoolParameters
lhsA value to compare.
rhsAnother value to compare.
-
Returns a Boolean value indicating whether two values are equal.
Equality is the inverse of inequality. For any values
aandb,a == bimplies thata != bisfalse.Declaration
Swift
static func == (lhs: CountrySuggestion, rhs: CountrySuggestion) -> BoolParameters
lhsA value to compare.
rhsAnother 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 }
View on GitHub
Install in Dash
CountrySuggestion Class Reference