Instance Method

routeButtonRect(forBounds:)

Returns the drawing rectangle for the route button.

Declaration

func routeButtonRect(forBounds bounds: CGRect) -> CGRect

Parameters

bounds

The bounding rectangle of the receiver.

Return Value

The computed drawing rectangle for the route button.

Discussion

Use this method to retrieve the bounding rectangle for the route button.

See Also

Customizing the Route Button

func routeButtonImage(for: UIControl.State) -> UIImage?

Returns the button image associated with the specified control state.

Deprecated
func setRouteButtonImage(UIImage?, for: UIControl.State)

Assigns a button image to the specified control states.

Deprecated