MUCollectionButton
@IBDesignable
open class MUCollectionButton : MUNibView
Class that regroup multiple UIButton with customizable options.
-
The object that acts as the delegate of the collection button.
Declaration
Swift
@IBOutlet public weak var delegate: MUCollectionButtonDelegate?
-
Specifies the loading indicator color appearance while it shows.
Declaration
Swift
@IBInspectable open dynamic var indicatorColor: UIColor { get set }
-
Specifies the collection button border color.
Declaration
Swift
@IBInspectable open dynamic var borderColor: UIColor { get set }
-
Specifies the collection button border width.
Declaration
Swift
@IBInspectable open dynamic var borderWidth: CGFloat { get set }
-
Describes the spacing between text and separator but only on autolayout view
Declaration
Swift
@IBInspectable open dynamic var spacing: CGFloat { get set }
-
Specifies collection button items have a separator view.
Declaration
Swift
@IBInspectable open dynamic var hasSeparator: Bool { get set }
-
Specifies collection button items separator height multiplier.
Declaration
Swift
@IBInspectable open dynamic var separatorHeightMultiplier: CGFloat { get set }
-
Specifies collection button items text color.
Declaration
Swift
@IBInspectable open dynamic var textColor: UIColor { get set }
-
Specifies collection button items text color for selected state.
Declaration
Swift
@IBInspectable open dynamic var selectedTextColor: UIColor { get set }
-
Specifies collection button items text font.
Declaration
Swift
@objc open dynamic var textFont: UIFont { get set }
-
Define the inset of the background and chart
Declaration
Swift
@IBInspectable open dynamic var horizontalPadding: CGFloat { get set }
-
Define the button collection
Declaration
Swift
open var items: [MUCollectionItem] { get set }
-
Show or hide the progress indicator.
Declaration
Swift
@IBInspectable open dynamic var isLoading: Bool { get set }
-
Set a custom button progress view
Declaration
Swift
open func set(_ progress: MUActivityIndicatorProtocol)
-
Define the button state at a given index
Declaration
Swift
public func set(enabled: Bool, at index: Int)
-
Default setup to load the view from a xib file.
Declaration
Swift
override open func xibSetup()