Index

RBFormItemSchema.swift

Classes


RBFormItemSchema

Encapsulates items for use with forms.

Properties

The unique identifier of this schema and the UIView that it uses. Use this to reference fields. You should assign this if you would like to refer to a field. If you do not assign an identifier one will be assigned automatically. The identifier is also used to reference the specific theme within the parent RBFormView theme.
public var identifier String { get set }

The identifier of the theme (in the RBFormView theme) to apply to all items of this type. The default implementation returns the name of the UIView (with the modules names removed i.e. Module.ClassName -> ClassName)
public var defaultThemeIdentifier String { get }

The identifier of the theme (in the RBFormView theme) to apply to all items having this themeIdentifier e.g. if you have 3 labels that you would like to set the textColor to green give them all the same groupThemeIdentifier
public var groupThemeIdentifier String? { get set }

Theme values to apply after any other prior theming has been applied.
public var themeOverrides [String : Any]? { get set }

Indicates this is a 'hidden' item. The UI for this field will not be displayed nor will any validation occur. If a form field is marked hidden it's inital value will always be returned when calling the values property on the RBFormView. This is useful for passing values through forms.
public var hidden Bool { get set }

The view that represents this schema.
public var view UIView { get }

Functions

public class func using(existingView: UIView) -> RBFormItemSchema


RBFormCancelButtonSchema

Properties

public var button RBButton { get }

open var defaultThemeIdentifier String { get }


RBFormSubmitButtonSchema

Properties

public var button RBButton { get }

open var defaultThemeIdentifier String { get }