FloatingButton
@objc(MBFloatingButton)
open class FloatingButton : Button
A rounded button with an icon that is designed to float above NavigationMapView.
-
The default size of a floating button.
Declaration
Swift
public static let buttonSize: CGSize -
Return a
FloatingButtonwith given images and size.Declaration
Swift
public class func rounded<T: FloatingButton>(image: UIImage? = nil, selectedImage: UIImage? = nil, size: CGSize = FloatingButton.buttonSize, type: UIButton.ButtonType = .custom, imageEdgeInsets: UIEdgeInsets = .zero, cornerRadius: CGFloat = FloatingButton.buttonSize.width / 2.0) -> TParameters
imageThe
UIImageof this button.selectedImageThe
UIImageof this button when selected.sizeThe size of this button, or
FloatingButton.buttonSizeif this argument is not specified.typeUIButtontype. Defaults to.custom.cornerRadiusCorner radius of the button.
imageEdgeInsetsEffective drawing rectangle for the button image.
Return Value
FloatingButtoninstance.
Install in Dash
FloatingButton Class Reference