FUIInlineValidationTableViewCell

open class FUIInlineValidationTableViewCell : NibDesignableFUIBaseTableViewCell, FUIInlineValidation, FUIAccessoryViewDelegate

FUIInlineValidationTableViewCell is a base class for FUIFormCells that need to support validation handling. The validation view will appear at the bottom of cell if validation message is set.

This class is typically not used by developer. Most of form cells are subclassing this class. To enable validation message on form cells by setting validationMessage property.

Code usage:

Set validationMessage on form cell.

override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
    let cell = tableView.dequeueReusableCell(withIdentifier: FUITitleFormCell.reuseIdentifier, for: indexPath) as! FUITitleFormCell
    //Configure your cell

    cell.validationMessage = "Validation msg"
}
  • An overlay that will be added to backgroundView when the cell’s state is set to .disable.

    Declaration

    Swift

    open var disabledBackgroundView: UIView? { get set }
  • Type of the accessory view

    Declaration

    Swift

    @IBInspectable
    override open var accessoryType: UITableViewCellAccessoryType { get set }