PlaceDetailsContent
enum PlaceDetailsContent
extension PlaceDetailsContent : Equatable, Hashable, Sendable
The content that can be displayed in the place details full view.
-
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 == (a: PlaceDetailsContent, b: PlaceDetailsContent) -> Bool
-
Wheelchair icon when a place has an accessible entrance
Declaration
Swift
case accessibleEntranceIcon(Bool = true)
-
The place’s address.
Declaration
Swift
case address(Bool = true)
-
The place’s feature list, rendered in a dedicated tab.
Declaration
Swift
case featureList(Bool = true)
-
Hashes the essential components of this value by feeding them into the given hasher.
Implement this method to conform to the
Hashable
protocol. The components used for hashing must be the same as the components compared in your type’s==
operator implementation. Callhasher.combine(_:)
with each of these components.Important
In your implementation of
hash(into:)
, don’t callfinalize()
on thehasher
instance provided, or replace it with a different instance. Doing so may become a compile-time error in the future.Declaration
Swift
func hash(into hasher: inout Hasher)
-
The hash value.
Hash values are not guaranteed to be equal across different executions of your program. Do not save hash values to use during a future execution.
Important
hashValue
is deprecated as aHashable
requirement. To conform toHashable
, implement thehash(into:)
requirement instead. The compiler provides an implementation forhashValue
for you.Declaration
Swift
var hashValue: Int { get }
-
The photo collage.
Declaration
Swift
case media(lightbox: Bool = true)
-
Open/closed status with next closing/opening time.
Declaration
Swift
case openNowStatus(Bool = true)
-
Open/closed status in the contacts section with next closing/opening time, expandable to full opening hours.
Declaration
Swift
case openingHours(Bool = true)
-
The place’s phone number.
Declaration
Swift
case phoneNumber(Bool = true)
-
The place’s plus code.
Declaration
Swift
case plusCode(Bool = true)
-
The place’s price.
Declaration
Swift
case price(Bool = true)
-
The place’s rating and rating count.
Declaration
Swift
case rating(Bool = true)
-
The place’s reviews, rendered in a dedicated tab.
Declaration
Swift
case reviews(Bool = true)
-
The place’s editorial summary
Declaration
Swift
case summary(Bool = true)
-
The place’s type.
Declaration
Swift
case type(Bool = true)
-
Details that can show up for specific place types, such as EV charging options and fuel prices.
Declaration
Swift
case typeSpecificHighlights(Bool = true)
-
The place’s website.
Declaration
Swift
case website(Bool = true)