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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software