2323
2424import UIKit
2525import IQKeyboardManagerSwift
26+ import IQKeyboardToolbarManager
2627
2728extension SettingsViewController {
2829
@@ -52,9 +53,10 @@ extension SettingsViewController {
5253 }
5354
5455 case 1 :
55- if IQKeyboardManager . shared. enableAutoToolbar == false {
56+ if IQKeyboardToolbarManager . shared. isEnabled == false {
5657 return 1
57- } else if IQKeyboardManager . shared. toolbarConfiguration. placeholderConfiguration. showPlaceholder == false {
58+ } else if IQKeyboardToolbarManager . shared
59+ . toolbarConfiguration. placeholderConfiguration. showPlaceholder == false {
5860 return 4
5961 } else {
6062 let properties = keyboardManagerProperties [ section]
@@ -151,7 +153,7 @@ extension SettingsViewController {
151153 cell. switchEnable. isEnabled = true
152154 cell. labelTitle. text = keyboardManagerProperties [ indexPath. section] [ indexPath. row]
153155 cell. labelSubtitle. text = keyboardManagerPropertyDetails [ indexPath. section] [ indexPath. row]
154- cell. switchEnable. isOn = IQKeyboardManager . shared. enableAutoToolbar
156+ cell. switchEnable. isOn = IQKeyboardToolbarManager . shared. isEnabled
155157 cell. switchEnable. removeTarget ( nil , action: nil , for: . allEvents)
156158 cell. switchEnable. addTarget ( self , action: #selector( self . enableAutoToolbarAction ( _: ) ) ,
157159 for: . valueChanged)
@@ -174,7 +176,7 @@ extension SettingsViewController {
174176 cell. switchEnable. isEnabled = true
175177 cell. labelTitle. text = keyboardManagerProperties [ indexPath. section] [ indexPath. row]
176178 cell. labelSubtitle. text = keyboardManagerPropertyDetails [ indexPath. section] [ indexPath. row]
177- cell. switchEnable. isOn = IQKeyboardManager . shared. toolbarConfiguration. useTextInputViewTintColor
179+ cell. switchEnable. isOn = IQKeyboardToolbarManager . shared. toolbarConfiguration. useTextInputViewTintColor
178180 cell. switchEnable. removeTarget ( nil , action: nil , for: . allEvents)
179181 cell. switchEnable. addTarget ( self , action: #selector( self . shouldToolbarUsesTextFieldTintColorAction ( _: ) ) ,
180182 for: . valueChanged)
@@ -189,7 +191,7 @@ extension SettingsViewController {
189191 let subtitle = keyboardManagerPropertyDetails [ indexPath. section] [ indexPath. row]
190192 cell. labelTitle. text = keyboardManagerProperties [ indexPath. section] [ indexPath. row]
191193 cell. labelSubtitle. text = subtitle
192- let toolbarConfig = IQKeyboardManager . shared. toolbarConfiguration
194+ let toolbarConfig = IQKeyboardToolbarManager . shared. toolbarConfiguration
193195 cell. switchEnable. isOn = toolbarConfig. placeholderConfiguration. showPlaceholder
194196 cell. switchEnable. removeTarget ( nil , action: nil , for: . allEvents)
195197 cell. switchEnable. addTarget ( self , action: #selector( self . shouldShowToolbarPlaceholder ( _: ) ) ,
@@ -212,7 +214,7 @@ extension SettingsViewController {
212214
213215 cell. labelTitle. text = keyboardManagerProperties [ indexPath. section] [ indexPath. row]
214216 cell. labelSubtitle. text = keyboardManagerPropertyDetails [ indexPath. section] [ indexPath. row]
215- cell. selectedColorView. backgroundColor = IQKeyboardManager . shared. toolbarConfiguration. tintColor
217+ cell. selectedColorView. backgroundColor = IQKeyboardToolbarManager . shared. toolbarConfiguration. tintColor
216218 cell. selectedColorView. layer. borderColor = UIColor . lightGray. cgColor
217219 cell. selectedColorView. layer. borderWidth = 1.0
218220 return cell
@@ -225,7 +227,8 @@ extension SettingsViewController {
225227 cell. switchEnable. isEnabled = true
226228 cell. labelTitle. text = keyboardManagerProperties [ indexPath. section] [ indexPath. row]
227229 cell. labelSubtitle. text = keyboardManagerPropertyDetails [ indexPath. section] [ indexPath. row]
228- let doneButtonConfiguration = IQKeyboardManager . shared. toolbarConfiguration. doneBarButtonConfiguration
230+ let doneButtonConfiguration = IQKeyboardToolbarManager . shared
231+ . toolbarConfiguration. doneBarButtonConfiguration
229232 cell. arrowImageView. image = doneButtonConfiguration? . image
230233 cell. switchEnable. isOn = doneButtonConfiguration? . image != nil
231234 cell. switchEnable. removeTarget ( nil , action: nil , for: . allEvents)
@@ -241,7 +244,8 @@ extension SettingsViewController {
241244
242245 cell. labelTitle. text = keyboardManagerProperties [ indexPath. section] [ indexPath. row]
243246 cell. labelSubtitle. text = keyboardManagerPropertyDetails [ indexPath. section] [ indexPath. row]
244- cell. textField. text = IQKeyboardManager . shared. toolbarConfiguration. doneBarButtonConfiguration? . title
247+ cell. textField. text = IQKeyboardToolbarManager . shared
248+ . toolbarConfiguration. doneBarButtonConfiguration? . title
245249 cell. textField. tag = 17
246250 cell. textField. delegate = self
247251 return cell
@@ -306,7 +310,7 @@ extension SettingsViewController {
306310 cell. switchEnable. isEnabled = true
307311 cell. labelTitle. text = keyboardManagerProperties [ indexPath. section] [ indexPath. row]
308312 cell. labelSubtitle. text = keyboardManagerPropertyDetails [ indexPath. section] [ indexPath. row]
309- cell. switchEnable. isOn = IQKeyboardManager . shared. playInputClicks
313+ cell. switchEnable. isOn = IQKeyboardToolbarManager . shared. playInputClicks
310314 cell. switchEnable. removeTarget ( nil , action: nil , for: . allEvents)
311315 cell. switchEnable. addTarget ( self , action: #selector( self . shouldPlayInputClicksAction ( _: ) ) ,
312316 for: . valueChanged)
0 commit comments