@@ -256,7 +256,7 @@ Codeless drop-in universal library allows to prevent issues of keyboard sliding
256256 @objc public var toolbarManageBehaviour = IQAutoToolbarManageBehaviour . bySubviews
257257
258258 /**
259- If YES, then uses textField's tintColor property for IQToolbar, otherwise tint color is black . Default is NO.
259+ If YES, then uses textField's tintColor property for IQToolbar, otherwise tint color is default . Default is NO.
260260 */
261261 @objc public var shouldToolbarUsesTextFieldTintColor = false
262262
@@ -266,7 +266,7 @@ Codeless drop-in universal library allows to prevent issues of keyboard sliding
266266 @objc public var toolbarTintColor : UIColor ?
267267
268268 /**
269- This is used for toolbar.barTintColor. Default is nil and uses white color .
269+ This is used for toolbar.barTintColor. Default is nil.
270270 */
271271 @objc public var toolbarBarTintColor : UIColor ?
272272
@@ -307,7 +307,7 @@ Codeless drop-in universal library allows to prevent issues of keyboard sliding
307307 @objc public var placeholderColor : UIColor ?
308308
309309 /**
310- Placeholder Button Color when it's treated as button. Default is nil. Which means iOS Blue for light toolbar and Yellow for dark toolbar
310+ Placeholder Button Color when it's treated as button. Default is nil.
311311 */
312312 @objc public var placeholderButtonColor : UIColor ?
313313
@@ -927,7 +927,7 @@ Codeless drop-in universal library allows to prevent issues of keyboard sliding
927927 /* Adjusting RootViewController's frame according to interface orientation. */
928928 private func adjustPosition( ) {
929929
930- // We are unable to get textField object while keyboard showing on UIWebView 's textField. (Bug ID: #11)
930+ // We are unable to get textField object while keyboard showing on WKWebView 's textField. (Bug ID: #11)
931931 if _privateHasPendingAdjustRequest == true ,
932932 let textFieldView = _textFieldView,
933933 let rootController = textFieldView. parentContainerViewController ( ) ,
@@ -1615,8 +1615,8 @@ Codeless drop-in universal library allows to prevent issues of keyboard sliding
16151615 let startTime = CACurrentMediaTime ( )
16161616 showLog ( " ****** \( #function) started ****** " , indentation: 1 )
16171617
1618- //Commented due to #56. Added all the conditions below to handle UIWebView 's textFields. (Bug ID: #56)
1619- // We are unable to get textField object while keyboard showing on UIWebView 's textField. (Bug ID: #11)
1618+ //Commented due to #56. Added all the conditions below to handle WKWebView 's textFields. (Bug ID: #56)
1619+ // We are unable to get textField object while keyboard showing on WKWebView 's textField. (Bug ID: #11)
16201620 // if (_textFieldView == nil) return
16211621
16221622 //Restoring the contentOffset of the lastScrollView
@@ -2014,11 +2014,11 @@ Codeless drop-in universal library allows to prevent issues of keyboard sliding
20142014 switch textField. keyboardAppearance {
20152015
20162016 case . dark:
2017- toolbar. barStyle = UIBarStyle . black
2018- toolbar. tintColor = UIColor . white
2017+ toolbar. barStyle = . black
2018+ toolbar. tintColor = nil
20192019 toolbar. barTintColor = nil
20202020 default :
2021- toolbar. barStyle = UIBarStyle . default
2021+ toolbar. barStyle = . default
20222022 toolbar. barTintColor = toolbarBarTintColor
20232023
20242024 //Setting toolbar tintColor // (Enhancement ID: #30)
@@ -2027,7 +2027,7 @@ Codeless drop-in universal library allows to prevent issues of keyboard sliding
20272027 } else if let tintColor = toolbarTintColor {
20282028 toolbar. tintColor = tintColor
20292029 } else {
2030- toolbar. tintColor = UIColor . black
2030+ toolbar. tintColor = nil
20312031 }
20322032 }
20332033 } else if let textView = textField as? UITextView {
@@ -2036,19 +2036,19 @@ Codeless drop-in universal library allows to prevent issues of keyboard sliding
20362036 switch textView. keyboardAppearance {
20372037
20382038 case . dark:
2039- toolbar. barStyle = UIBarStyle . black
2040- toolbar. tintColor = UIColor . white
2039+ toolbar. barStyle = . black
2040+ toolbar. tintColor = nil
20412041 toolbar. barTintColor = nil
20422042 default :
2043- toolbar. barStyle = UIBarStyle . default
2043+ toolbar. barStyle = . default
20442044 toolbar. barTintColor = toolbarBarTintColor
20452045
20462046 if shouldToolbarUsesTextFieldTintColor {
20472047 toolbar. tintColor = textView. tintColor
20482048 } else if let tintColor = toolbarTintColor {
20492049 toolbar. tintColor = tintColor
20502050 } else {
2051- toolbar. tintColor = UIColor . black
2051+ toolbar. tintColor = nil
20522052 }
20532053 }
20542054 }
0 commit comments