MUPinCode
@IBDesignable
open class MUPinCode : MUNibView
Class that provide a pin code like component with customizable options.
-
The object that acts as the delegate of the pin code.
Declaration
Swift
@IBOutlet public weak var delegate: MUPinCodeDelegate?
-
Describes the pin code caracters set allowed
Declaration
Swift
open var allowCharacters: MUPinCodeCharacterSet
-
Return the current code
Declaration
Swift
open var code: String { get }
-
Describes the MUPinCode’s cell’s number shown
Declaration
Swift
@IBInspectable open dynamic var pinCount: Int { get set }
-
Optional: The IBInspectable version of the pin code allowCharacters.
Declaration
Swift
@IBInspectable open dynamic var allowCharactersInt: Int { get set }
-
Describes the pin code related keyboard type
Declaration
Swift
@objc open dynamic var keyboardType: UIKeyboardType { get set }
-
Describes the pin code related keyboard appearance
Declaration
Swift
@objc open dynamic var keyboardAppearance: UIKeyboardAppearance { get set }
-
Describes the MUPinCode’s cell’s background color appearance while it shows
Declaration
Swift
@IBInspectable open dynamic var cellColor: UIColor { get set }
-
Describes the MUPinCode’s cell’s corner radius appearance while it shows
Declaration
Swift
@IBInspectable open dynamic var cellCornerRadius: CGFloat { get set }
-
Describes the MUPinCode’s cell’s spacing appearance while it shows
Declaration
Swift
@IBInspectable open dynamic var cellSpacing: CGFloat { get set }
-
Describes the MUPinCode’s font appearance while it shows
Declaration
Swift
@objc open dynamic var cellFont: UIFont { get set }
-
Describes the MUPinCode’s cell’s empty text while it shows
Declaration
Swift
@IBInspectable open dynamic var emptyCharacter: String { get set }
-
Describes the NavigationNavBar’s separator background color appearance while it shows
Declaration
Swift
@IBInspectable open dynamic var keyboardTypeInt: Int { get set }
-
Describes the NavigationNavBar’s separator background color appearance while it shows
Declaration
Swift
@IBInspectable open dynamic var keyboardAppearanceInt: Int { get set }
-
Reset all pin cell caracters to default
Declaration
Swift
open func reset()
-
Fill pin code with a given code
Declaration
Swift
open func set(code: String)
-
Show / hide keyboard
Declaration
Swift
open func activeKeyboard(_ isActive: Bool)
-
Default setup to load the view from a xib file.
Declaration
Swift
override open func xibSetup()
-
The natural size for the receiving view, considering only properties of the view itself.
Declaration
Swift
override open var intrinsicContentSize: CGSize { get }
-
Handle pin code caracter replacement check
Declaration
Swift
public func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool