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
FloatingButton
with given images and size.Declaration
Swift
public class func rounded<T>(image: UIImage? = nil, selectedImage: UIImage? = nil, size: CGSize = FloatingButton.buttonSize) -> T where T : FloatingButton
Parameters
image
The
UIImage
of this button.selectedImage
The
UIImage
of this button when selected.size
The size of this button, or
FloatingButton.buttonSize
if this argument is not specified.