Compare commits

...

2 Commits

Author SHA1 Message Date
Andrey Ovsyannikov f5349272af Merge pull request #50 from TouchInstinct/fix/pass_code
BasePassCodeViewController
2018-07-18 18:42:43 +03:00
Madhas 1570ce331d add methods to BasePassCodeViewController to make fakeTextField become and resign first responder 2018-07-18 18:32:35 +03:00
3 changed files with 17 additions and 1 deletions
+4
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`.
+1 -1
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"
@@ -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() {