Merge pull request #50 from TouchInstinct/fix/pass_code

BasePassCodeViewController
This commit is contained in:
Andrey Ovsyannikov 2018-07-18 18:42:43 +03:00 committed by GitHub
commit f5349272af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 1 deletions

View File

@ -1,5 +1,9 @@
# Changelog
### 0.3.2
- **Add**: functions to `BasePassCodeViewController` to make `fakeTextField` become and resign first responder
### 0.3.1
- **Add**: `PinLayoutTableViewCell` and `SeparatorTableViewCell` to `Core-iOS-Extension`.

View File

@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "LeadKitAdditions"
s.version = "0.3.1"
s.version = "0.3.2"
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

@ -239,6 +239,18 @@ open class BasePassCodeViewController: UIViewController, ConfigurableController
titleLabel?.attributedText = actionTitle(for: passCodeControllerState)
}
// MARK: - Public functions
/// Make fakeTextField become first responder
public func enableInput() {
fakeTextField.becomeFirstResponder()
}
/// Make fakeTextField resign first responder
public func disableInput() {
fakeTextField.resignFirstResponder()
}
// MARK: - ConfigurableController
open func bindViews() {