GooglePlacesSwift Framework Reference

PlaceWidgetTheme

struct PlaceWidgetTheme

The theme for the place widget.

  • The color of the attribution text in dark mode.

    Declaration

    Swift

    var attributionColorDark: PlaceWidgetAttribution
  • The color of the attribution text in light mode.

    Declaration

    Swift

    var attributionColorLight: PlaceWidgetAttribution
  • Font for place info body text.

    Declaration

    Swift

    var bodyLarge: Font
  • Font for error text.

    Declaration

    Swift

    var bodyMedium: Font
  • Font for place address, type, and price text.

    Declaration

    Swift

    var bodySmall: Font
  • The color of the accessibility icon.

    Declaration

    Swift

    var colorInfo: Color
  • The color of the text on buttons.

    Declaration

    Swift

    var colorOnSecondaryContainer: Color
  • The color of text like place name.

    Declaration

    Swift

    var colorOnSurface: Color
  • The color of text like address.

    Declaration

    Swift

    var colorOnSurfaceVariant: Color
  • The outline color of the widget.

    Declaration

    Swift

    var colorOutlineDecorative: Color
  • The color of text like open hours.

    Declaration

    Swift

    var colorPositive: Color
  • The color of the spinner.

    Declaration

    Swift

    var colorPrimary: Color
  • The background color of the buttons.

    Declaration

    Swift

    var colorSecondaryContainer: Color
  • The background color of the widget.

    Declaration

    Swift

    var colorSurfaceContainerLowest: Color
  • The corner radius of the widget.

    Declaration

    Swift

    var cornerRadius: CGFloat
  • Font for place info title text.

    Declaration

    Swift

    var headlineMedium: Font
  • The constructor for the place widget theme.

    Declaration

    Swift

    init()
  • Font for place name and button text.

    Declaration

    Swift

    var labelLarge: Font