GooglePlacesSwift Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
PlacesMaterialColor
struct PlacesMaterialColor
extension PlacesMaterialColor : Equatable, Hashable, Sendable
Material color tokens.
-
Returns a Boolean value indicating whether two values are equal.
Equality is the inverse of inequality. For any values a
and b
,
a == b
implies that a != b
is false
.
Declaration
Swift
static func == (a: PlacesMaterialColor, b: PlacesMaterialColor) -> Bool
-
The color of the border of Button components. Transparent by default.
Declaration
Swift
var buttonBorder: Color
-
The color of the empty star in the rating view.
Declaration
Swift
var disabledSurface: Color
-
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. Call hasher.combine(_:)
with each of these components.
Important
In your implementation of hash(into:)
,
don’t call finalize()
on the hasher
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 a
Hashable
requirement. To
conform to
Hashable
, implement the
hash(into:)
requirement instead.
The compiler provides an implementation for
hashValue
for you.
Declaration
Swift
var hashValue: Int { get }
-
The color of the accessibility icon.
-
Creates a default color theme.
-
The color of text like Closed.
Declaration
Swift
var negative: Color
-
The background color of the review date label.
Declaration
Swift
var neutralContainer: Color
-
The color of the review date label.
Declaration
Swift
var onNeutralContainer: Color
-
The color of the text on buttons.
Declaration
Swift
var onSecondaryContainer: Color
-
The color of text like place name.
Declaration
Swift
var onSurface: Color
-
The color of text like address.
Declaration
Swift
var onSurfaceVariant: Color
-
The outline color of the component.
Declaration
Swift
var outlineDecorative: Color
-
The color of text like Open.
Declaration
Swift
var positive: Color
-
The color of the EV charging badge.
Declaration
Swift
var positiveContainer: Color
-
The color of the spinner.
-
The background color of the buttons.
Declaration
Swift
var secondaryContainer: Color
-
The background color of the component.
-
The dark colored author name text.
Declaration
Swift
var surfaceImmersive: Color
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[],[],null,["# GooglePlacesSwift Framework Reference\n\nPlacesMaterialColor\n===================\n\n struct PlacesMaterialColor\n\n extension PlacesMaterialColor : Equatable, Hashable, Sendable\n\nMaterial color tokens.\n- `\n ``\n ``\n `\n\n ### [==(_:_:)](#/s:17GooglePlacesSwift0B13MaterialColorV2eeoiySbAC_ACtFZ)\n\n `\n ` \n Returns a Boolean value indicating whether two values are equal.\n\n Equality is the inverse of inequality. For any values `a` and `b`,\n `a == b` implies that `a != b` is `false`. \n\n #### Declaration\n\n Swift \n\n static func == (a: PlacesMaterialColor, b: PlacesMaterialColor) -\u003e Bool\n\n- `\n ``\n ``\n `\n\n ### [buttonBorder](#/s:17GooglePlacesSwift0B13MaterialColorV12buttonBorder0C2UI0E0Vvp)\n\n `\n ` \n The color of the border of Button components. Transparent by default. \n\n #### Declaration\n\n Swift \n\n var buttonBorder: Color\n\n- `\n ``\n ``\n `\n\n ### [disabledSurface](#/s:17GooglePlacesSwift0B13MaterialColorV15disabledSurface0C2UI0E0Vvp)\n\n `\n ` \n The color of the empty star in the rating view. \n\n #### Declaration\n\n Swift \n\n var disabledSurface: Color\n\n- `\n ``\n ``\n `\n\n ### [hash(into:)](#/s:17GooglePlacesSwift0B13MaterialColorV4hash4intoys6HasherVz_tF)\n\n `\n ` \n Hashes the essential components of this value by feeding them into the\n given hasher.\n\n Implement this method to conform to the `Hashable` protocol. The\n components used for hashing must be the same as the components compared\n in your type's `==` operator implementation. Call `hasher.combine(_:)`\n with each of these components. \n Important\n\n In your implementation of `hash(into:)`,\n don't call `finalize()` on the `hasher` instance provided,\n or replace it with a different instance.\n Doing so may become a compile-time error in the future. \n\n #### Declaration\n\n Swift \n\n func hash(into hasher: inout Hasher)\n\n- `\n ``\n ``\n `\n\n ### [hashValue](#/s:17GooglePlacesSwift0B13MaterialColorV9hashValueSivp)\n\n `\n ` \n The hash value.\n\n Hash values are not guaranteed to be equal across different executions of\n your program. Do not save hash values to use during a future execution. \n Important\n `hashValue` is deprecated as a `Hashable` requirement. To conform to `Hashable`, implement the [hash(into:)](../Structs/PlacesMaterialColor.html#/s:17GooglePlacesSwift0B13MaterialColorV4hash4intoys6HasherVz_tF) requirement instead. The compiler provides an implementation for `hashValue` for you. \n\n #### Declaration\n\n Swift \n\n var hashValue: Int { get }\n\n- `\n ``\n ``\n `\n\n ### [info](#/s:17GooglePlacesSwift0B13MaterialColorV4info0C2UI0E0Vvp)\n\n `\n ` \n The color of the accessibility icon. \n\n #### Declaration\n\n Swift \n\n var info: Color\n\n- `\n ``\n ``\n `\n\n ### [init()](#/s:17GooglePlacesSwift0B13MaterialColorVACycfc)\n\n `\n ` \n Creates a default color theme. \n\n #### Declaration\n\n Swift \n\n init()\n\n- `\n ``\n ``\n `\n\n ### [negative](#/s:17GooglePlacesSwift0B13MaterialColorV8negative0C2UI0E0Vvp)\n\n `\n ` \n The color of text like Closed. \n\n #### Declaration\n\n Swift \n\n var negative: Color\n\n- `\n ``\n ``\n `\n\n ### [neutralContainer](#/s:17GooglePlacesSwift0B13MaterialColorV16neutralContainer0C2UI0E0Vvp)\n\n `\n ` \n The background color of the review date label. \n\n #### Declaration\n\n Swift \n\n var neutralContainer: Color\n\n- `\n ``\n ``\n `\n\n ### [onNeutralContainer](#/s:17GooglePlacesSwift0B13MaterialColorV18onNeutralContainer0C2UI0E0Vvp)\n\n `\n ` \n The color of the review date label. \n\n #### Declaration\n\n Swift \n\n var onNeutralContainer: Color\n\n- `\n ``\n ``\n `\n\n ### [onSecondaryContainer](#/s:17GooglePlacesSwift0B13MaterialColorV20onSecondaryContainer0C2UI0E0Vvp)\n\n `\n ` \n The color of the text on buttons. \n\n #### Declaration\n\n Swift \n\n var onSecondaryContainer: Color\n\n- `\n ``\n ``\n `\n\n ### [onSurface](#/s:17GooglePlacesSwift0B13MaterialColorV9onSurface0C2UI0E0Vvp)\n\n `\n ` \n The color of text like place name. \n\n #### Declaration\n\n Swift \n\n var onSurface: Color\n\n- `\n ``\n ``\n `\n\n ### [onSurfaceVariant](#/s:17GooglePlacesSwift0B13MaterialColorV16onSurfaceVariant0C2UI0E0Vvp)\n\n `\n ` \n The color of text like address. \n\n #### Declaration\n\n Swift \n\n var onSurfaceVariant: Color\n\n- `\n ``\n ``\n `\n\n ### [outlineDecorative](#/s:17GooglePlacesSwift0B13MaterialColorV17outlineDecorative0C2UI0E0Vvp)\n\n `\n ` \n The outline color of the component. \n\n #### Declaration\n\n Swift \n\n var outlineDecorative: Color\n\n- `\n ``\n ``\n `\n\n ### [positive](#/s:17GooglePlacesSwift0B13MaterialColorV8positive0C2UI0E0Vvp)\n\n `\n ` \n The color of text like Open. \n\n #### Declaration\n\n Swift \n\n var positive: Color\n\n- `\n ``\n ``\n `\n\n ### [positiveContainer](#/s:17GooglePlacesSwift0B13MaterialColorV17positiveContainer0C2UI0E0Vvp)\n\n `\n ` \n The color of the EV charging badge. \n\n #### Declaration\n\n Swift \n\n var positiveContainer: Color\n\n- `\n ``\n ``\n `\n\n ### [primary](#/s:17GooglePlacesSwift0B13MaterialColorV7primary0C2UI0E0Vvp)\n\n `\n ` \n The color of the spinner. \n\n #### Declaration\n\n Swift \n\n var primary: Color\n\n- `\n ``\n ``\n `\n\n ### [secondaryContainer](#/s:17GooglePlacesSwift0B13MaterialColorV18secondaryContainer0C2UI0E0Vvp)\n\n `\n ` \n The background color of the buttons. \n\n #### Declaration\n\n Swift \n\n var secondaryContainer: Color\n\n- `\n ``\n ``\n `\n\n ### [surface](#/s:17GooglePlacesSwift0B13MaterialColorV7surface0C2UI0E0Vvp)\n\n `\n ` \n The background color of the component. \n\n #### Declaration\n\n Swift \n\n var surface: Color\n\n- `\n ``\n ``\n `\n\n ### [surfaceImmersive](#/s:17GooglePlacesSwift0B13MaterialColorV16surfaceImmersive0C2UI0E0Vvp)\n\n `\n ` \n The dark colored author name text. \n\n #### Declaration\n\n Swift \n\n var surfaceImmersive: Color"]]