diff --git a/CHANGELOG.md b/CHANGELOG.md index 37edc1c..482049f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/LeadKitAdditions.podspec b/LeadKitAdditions.podspec index 95654d1..34a1cbc 100644 --- a/LeadKitAdditions.podspec +++ b/LeadKitAdditions.podspec @@ -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" diff --git a/Sources/Controllers/PassCode/View/BasePassCodeViewController.swift b/Sources/Controllers/PassCode/View/BasePassCodeViewController.swift index 97f7b8f..26f8ba0 100644 --- a/Sources/Controllers/PassCode/View/BasePassCodeViewController.swift +++ b/Sources/Controllers/PassCode/View/BasePassCodeViewController.swift @@ -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)