FUIButtonFormCell

open class FUIButtonFormCell: NibDesignableTableViewCell

Simple UITableViewCell subclass, containing a UIButton instance which can be aligned to 3 FUIHorizontalAlignment positions: .left, .center, .right.

FUIButtonFormCell

Usage:

Implement the action handler for the UIButton instance, to respond to UIControl events.

  • The value type is UIControlEvents.

    Declaration

    Swift

    public typealias ValueType = UIControlEvents
  • Implementation of change handler. Is invoked when button is tapped.

    Declaration

    Swift

    public var onChangeHandler: ((UIControlEvents) -> Void)?
  • Reuse identifier

    Declaration

    Swift

    open static var reuseIdentifier: String
  • Main @IBOutlet in the view. May be positioned in cell, using alignment property. Assign target action, using UIButton addTarget(_:_:_:) interface.

    Declaration

    Swift

    @IBOutlet open weak var button: FUIButton!
  • The alignment for this button.

    Declaration

    Swift

    open var alignment: FUIHorizontalAlignment = .center