GooglePlacesSwift Framework Reference

CornerPlaceAction

struct CornerPlaceAction

This product or feature is in pre-GA. Pre-GA products and features might have limited support, and changes to pre-GA products and features might not be compatible with other pre-GA versions. Pre-GA Offerings are covered by the Google Maps Platform Service Specific Terms (https://cloud.google.com/maps-platform/terms/maps-service-terms).

Represents a custom place view action that can be displayed in the corner of a place view.

  • Declaration

    Swift

    let accessibilityLabel: String
  • Declaration

    Swift

    let image: Image
  • Initializes a corner place action with the given parameters.

    Declaration

    Swift

    init(image: Image, accessibilityLabel: String, style: PlaceActionStyle = .secondary, onTap: @escaping (Place) -> Void)

    Parameters

    image

    The image to display for the action.

    accessibilityLabel

    The accessibility label for the action.

    style

    The style of the action.

    onTap

    The closure to perform when the action is tapped.

  • Declaration

    Swift

    let onTap: (Place) -> Void
  • Declaration

    Swift

    let style: PlaceActionStyle