DigitsCodeField Simple UIView for code digits entering and pasting Usage // Init init(maxDigitsCount: Int = 6) // Update state func updateUI(with state: State) enum State { case isEditing(Bool) case isValid(Bool) } Demo