| | |
| | | |
| | | private func sendEvent() { |
| | | |
| | | if let textFieldViewInfo = textFieldViewInfo, |
| | | let rootControllerConfiguration = rootControllerConfiguration, |
| | | if let rootControllerConfiguration = rootControllerConfiguration, |
| | | rootControllerConfiguration.isReady { |
| | | if keyboardInfo.keyboardShowing { |
| | | if lastEvent == .hide { |
| | |
| | | |
| | | typealias ConfigurationCompletion = (_ event: Event, |
| | | _ keyboardInfo: IQKeyboardInfo, |
| | | _ textFieldInfo: IQTextFieldViewInfo) -> Void |
| | | _ textFieldInfo: IQTextFieldViewInfo?) -> Void |
| | | |
| | | func registerChange(identifier: AnyHashable, changeHandler: @escaping ConfigurationCompletion) { |
| | | changeObservers[identifier] = changeHandler |
| | |
| | | changeObservers[identifier] = nil |
| | | } |
| | | |
| | | private func notify(event: Event, keyboardInfo: IQKeyboardInfo, textFieldViewInfo: IQTextFieldViewInfo) { |
| | | private func notify(event: Event, keyboardInfo: IQKeyboardInfo, textFieldViewInfo: IQTextFieldViewInfo?) { |
| | | lastEvent = event |
| | | |
| | | for block in changeObservers.values { |