Merge pull request #37 from TouchInstinct/fix/highlight

Fix/highlight
This commit is contained in:
Alexey Gerasimov 2018-03-30 14:47:57 +03:00 committed by GitHub
commit a1483eeee9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 2 deletions

View File

@ -1,5 +1,9 @@
# Changelog
## 0.2.1
- **Fixed**: BasePassCodeViewController doesn't draw last dot filled
## 0.2.0
- **Updated**: LeadKit to `0.7.x` version
- **Removed**: `CellField*` and `FormField*` protocols and classes.

View File

@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "LeadKitAdditions"
s.version = "0.2.0"
s.version = "0.2.1"
s.summary = "iOS framework with a bunch of tools for rapid development"
s.homepage = "https://github.com/TouchInstinct/LeadKitAdditions"
s.license = "Apache License, Version 2.0"

View File

@ -225,9 +225,12 @@ open class BasePassCodeViewController: UIViewController, ConfigurableController
open func bindViews() {
fakeTextField.rx.text.asDriver()
.drive(onNext: { [weak self] text in
.do(onNext: { [weak self] text in
self?.setStates(for: text ?? "")
self?.hideError()
})
.delay(0.1) // time to draw dots
.drive(onNext: { [weak self] text in
self?.viewModel.setPassCodeText(text)
})
.disposed(by: disposeBag)