CornerPlaceAction
struct CornerPlaceActionRepresents 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
imageThe image to display for the action.
accessibilityLabelThe accessibility label for the action.
styleThe style of the action.
onTapThe closure to perform when the action is tapped.
-
Declaration
Swift
let onTap: (Place) -> Void -
Declaration
Swift
let style: PlaceActionStyle