@@ -68,8 +68,7 @@ internal final class IQActiveConfiguration {
6868
6969 private func sendEvent( ) {
7070
71- if let textFieldViewInfo = textFieldViewInfo,
72- let rootControllerConfiguration = rootControllerConfiguration,
71+ if let rootControllerConfiguration = rootControllerConfiguration,
7372 rootControllerConfiguration. isReady {
7473 if keyboardInfo. keyboardShowing {
7574 if lastEvent == . hide {
@@ -87,13 +86,6 @@ internal final class IQActiveConfiguration {
8786 } , completion: nil )
8887 }
8988 }
90- } else if textFieldViewInfo == nil , let rootControllerConfiguration = rootControllerConfiguration {
91- if rootControllerConfiguration. hasChanged {
92- animate ( alongsideTransition: {
93- rootControllerConfiguration. restore ( )
94- } , completion: nil )
95- }
96- self . rootControllerConfiguration = nil
9789 }
9890 }
9991
@@ -190,7 +182,7 @@ extension IQActiveConfiguration {
190182
191183 typealias ConfigurationCompletion = ( _ event: Event ,
192184 _ keyboardInfo: IQKeyboardInfo ,
193- _ textFieldInfo: IQTextFieldViewInfo ) -> Void
185+ _ textFieldInfo: IQTextFieldViewInfo ? ) -> Void
194186
195187 func registerChange( identifier: AnyHashable , changeHandler: @escaping ConfigurationCompletion ) {
196188 changeObservers [ identifier] = changeHandler
@@ -200,7 +192,7 @@ extension IQActiveConfiguration {
200192 changeObservers [ identifier] = nil
201193 }
202194
203- private func notify( event: Event , keyboardInfo: IQKeyboardInfo , textFieldViewInfo: IQTextFieldViewInfo ) {
195+ private func notify( event: Event , keyboardInfo: IQKeyboardInfo , textFieldViewInfo: IQTextFieldViewInfo ? ) {
204196 lastEvent = event
205197
206198 for block in changeObservers. values {
0 commit comments