GooglePlacesSwift Framework Reference

MainPlaceAction

struct MainPlaceAction

Represents a custom place view action that can be displayed in the main body area of a place view.

  • Declaration

    Swift

    let accessibilityLabel: String?
  • Declaration

    Swift

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

    Declaration

    Swift

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

    Parameters

    image

    The image to display for the action. If nil, no image will be displayed.

    label

    The text label to display for the action.

    accessibilityLabel

    The accessibility label for the action. If nil, the label will be used.

    style

    The style of the action.

    onTap

    The closure to perform when the action is tapped.

  • Declaration

    Swift

    let label: String
  • Declaration

    Swift

    let onTap: (Place) -> Void
  • Declaration

    Swift

    let style: PlaceActionStyle