MURadioButtonGroup
@IBDesignable
open class MURadioButtonGroup
Class that act like a group of MURadioButtonProtocol.
-
The object that acts as the delegate of the radio button group.
Declaration
Swift
@IBOutlet public weak var delegate: MURadioButtonDelegate?
-
Initializes and returns a newly allocated MURadioButtonGroup with optional array of MURadioButtonProtocol.
Declaration
Swift
public init(with group: [MURadioButtonProtocol] = [])
-
Add a MURadioButtonProtocol to the end of current list.
Declaration
Swift
open func add(button: MURadioButtonProtocol)
-
Select the MURadioButtonProtocol at specific index. It will unselect the current one if needed.
Declaration
Swift
open func select(index: Int)
-
Will trigger each time a radio button is selected.
Declaration
Swift
public func didSelect(button: MURadioButtonProtocol)
-
Will trigger each time a radio button is unselected.
Declaration
Swift
public func didUnselect(button: MURadioButtonProtocol)