From aa16b9ed771592489a5b5af05b504a2f4ff7a118 Mon Sep 17 00:00:00 2001 From: iftekhar_qurashi Date: Thu, 28 Mar 2019 14:12:29 +0530 Subject: [PATCH] - Removed some access specifiers giving us warnings. --- Demo.xcodeproj/project.pbxproj | 4 +- .../Categories/IQNSArray+Sort.swift | 4 +- .../Categories/IQUIScrollView+Additions.swift | 4 +- .../IQUITextFieldView+Additions.swift | 6 +- .../Categories/IQUIView+Hierarchy.swift | 8 +-- .../IQUIViewController+Additions.swift | 2 +- .../IQUIView+IQKeyboardToolbar.swift | 58 +++++++++---------- 7 files changed, 42 insertions(+), 44 deletions(-) diff --git a/Demo.xcodeproj/project.pbxproj b/Demo.xcodeproj/project.pbxproj index 25cd8a81..876fc156 100644 --- a/Demo.xcodeproj/project.pbxproj +++ b/Demo.xcodeproj/project.pbxproj @@ -679,7 +679,7 @@ C0ACB0F419CF104B0057B571 = { CreatedOnToolsVersion = 6.0.1; DevelopmentTeam = 7UUTF6T5P9; - LastSwiftMigration = 0900; + LastSwiftMigration = 1020; }; C0B63B9A1781FAB1008D3B64 = { DevelopmentTeam = 7UUTF6T5P9; @@ -1135,7 +1135,6 @@ PRODUCT_NAME = DemoSwift; SWIFT_OBJC_BRIDGING_HEADER = "Demo/Swift_Demo/Resources/IQKeyboardManger-Swift-Bridging-Header.h"; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_SWIFT3_OBJC_INFERENCE = Off; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; }; @@ -1170,7 +1169,6 @@ PRODUCT_BUNDLE_IDENTIFIER = com.iftekhar.IQKeyboardManagerSwift; PRODUCT_NAME = DemoSwift; SWIFT_OBJC_BRIDGING_HEADER = "Demo/Swift_Demo/Resources/IQKeyboardManger-Swift-Bridging-Header.h"; - SWIFT_SWIFT3_OBJC_INFERENCE = Off; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; }; diff --git a/IQKeyboardManagerSwift/Categories/IQNSArray+Sort.swift b/IQKeyboardManagerSwift/Categories/IQNSArray+Sort.swift index 8f7e8ab3..38274f1d 100644 --- a/IQKeyboardManagerSwift/Categories/IQNSArray+Sort.swift +++ b/IQKeyboardManagerSwift/Categories/IQNSArray+Sort.swift @@ -36,7 +36,7 @@ internal extension Array { /** Returns the array by sorting the UIView's by their tag property. */ - internal func sortedArrayByTag() -> [Element] { + func sortedArrayByTag() -> [Element] { return sorted(by: { (obj1 : Element, obj2 : Element) -> Bool in @@ -50,7 +50,7 @@ internal extension Array { /** Returns the array by sorting the UIView's by their tag property. */ - internal func sortedArrayByPosition() -> [Element] { + func sortedArrayByPosition() -> [Element] { return sorted(by: { (obj1 : Element, obj2 : Element) -> Bool in diff --git a/IQKeyboardManagerSwift/Categories/IQUIScrollView+Additions.swift b/IQKeyboardManagerSwift/Categories/IQUIScrollView+Additions.swift index b795ce9c..47465d35 100644 --- a/IQKeyboardManagerSwift/Categories/IQUIScrollView+Additions.swift +++ b/IQKeyboardManagerSwift/Categories/IQUIScrollView+Additions.swift @@ -32,7 +32,7 @@ private var kIQShouldRestoreScrollViewContentOffset = "kIQShouldRestoreScrollVie /** If YES, then scrollview will ignore scrolling (simply not scroll it) for adjusting textfield position. Default is NO. */ - @objc public var shouldIgnoreScrollingAdjustment: Bool { + @objc var shouldIgnoreScrollingAdjustment: Bool { get { if let aValue = objc_getAssociatedObject(self, &kIQShouldIgnoreScrollingAdjustment) as? Bool { @@ -49,7 +49,7 @@ private var kIQShouldRestoreScrollViewContentOffset = "kIQShouldRestoreScrollVie /** To set customized distance from keyboard for textField/textView. Can't be less than zero */ - @objc public var shouldRestoreScrollViewContentOffset: Bool { + @objc var shouldRestoreScrollViewContentOffset: Bool { get { if let aValue = objc_getAssociatedObject(self, &kIQShouldRestoreScrollViewContentOffset) as? Bool { diff --git a/IQKeyboardManagerSwift/Categories/IQUITextFieldView+Additions.swift b/IQKeyboardManagerSwift/Categories/IQUITextFieldView+Additions.swift index 07b9758a..d16d0f2c 100644 --- a/IQKeyboardManagerSwift/Categories/IQUITextFieldView+Additions.swift +++ b/IQKeyboardManagerSwift/Categories/IQUITextFieldView+Additions.swift @@ -42,7 +42,7 @@ UIView category for managing UITextField/UITextView /** To set customized distance from keyboard for textField/textView. Can't be less than zero */ - @objc public var keyboardDistanceFromTextField: CGFloat { + @objc var keyboardDistanceFromTextField: CGFloat { get { if let aValue = objc_getAssociatedObject(self, &kIQKeyboardDistanceFromTextField) as? CGFloat { @@ -59,7 +59,7 @@ UIView category for managing UITextField/UITextView /** If shouldIgnoreSwitchingByNextPrevious is true then library will ignore this textField/textView while moving to other textField/textView using keyboard toolbar next previous buttons. Default is false */ - @objc public var ignoreSwitchingByNextPrevious: Bool { + @objc var ignoreSwitchingByNextPrevious: Bool { get { if let aValue = objc_getAssociatedObject(self, &kIQIgnoreSwitchingByNextPrevious) as? Bool { @@ -93,7 +93,7 @@ UIView category for managing UITextField/UITextView /** Override resigns Keyboard on touching outside of UITextField/View behaviour for this particular textField. */ - @objc public var shouldResignOnTouchOutsideMode: IQEnableMode { + @objc var shouldResignOnTouchOutsideMode: IQEnableMode { get { if let savedMode = objc_getAssociatedObject(self, &kIQKeyboardShouldResignOnTouchOutsideMode) as? IQEnableMode { diff --git a/IQKeyboardManagerSwift/Categories/IQUIView+Hierarchy.swift b/IQKeyboardManagerSwift/Categories/IQUIView+Hierarchy.swift index 996d69c5..83939fc2 100644 --- a/IQKeyboardManagerSwift/Categories/IQUIView+Hierarchy.swift +++ b/IQKeyboardManagerSwift/Categories/IQUIView+Hierarchy.swift @@ -36,7 +36,7 @@ UIView hierarchy category. /** Returns the UIViewController object that manages the receiver. */ - @objc public func viewContainingController()->UIViewController? { + @objc func viewContainingController()->UIViewController? { var nextResponder: UIResponder? = self @@ -55,7 +55,7 @@ UIView hierarchy category. /** Returns the topMost UIViewController object in hierarchy. */ - @objc public func topMostController()->UIViewController? { + @objc func topMostController()->UIViewController? { var controllersHierarchy = [UIViewController]() @@ -89,7 +89,7 @@ UIView hierarchy category. /** Returns the UIViewController object that is actually the parent of this object. Most of the time it's the viewController object which actually contains it, but result may be different if it's viewController is added as childViewController of another viewController. */ - @objc public func parentContainerViewController()->UIViewController? { + @objc func parentContainerViewController()->UIViewController? { var matchController = viewContainingController() var parentContainerViewController : UIViewController? @@ -148,7 +148,7 @@ UIView hierarchy category. /** Returns the superView of provided class type. */ - @objc public func superviewOfClassType(_ classType:UIView.Type)->UIView? { + @objc func superviewOfClassType(_ classType:UIView.Type)->UIView? { var superView = superview diff --git a/IQKeyboardManagerSwift/Categories/IQUIViewController+Additions.swift b/IQKeyboardManagerSwift/Categories/IQUIViewController+Additions.swift index f9883b1a..15584054 100644 --- a/IQKeyboardManagerSwift/Categories/IQUIViewController+Additions.swift +++ b/IQKeyboardManagerSwift/Categories/IQUIViewController+Additions.swift @@ -35,7 +35,7 @@ private var kIQLayoutGuideConstraint = "kIQLayoutGuideConstraint" @deprecated Due to change in core-logic of handling distance between textField and keyboard distance, this layout contraint tweak is no longer needed and things will just work out of the box regardless of constraint pinned with safeArea/layoutGuide/superview */ @available(*,deprecated, message: "Due to change in core-logic of handling distance between textField and keyboard distance, this layout contraint tweak is no longer needed and things will just work out of the box regardless of constraint pinned with safeArea/layoutGuide/superview.") - @IBOutlet @objc public var IQLayoutGuideConstraint: NSLayoutConstraint? { + @IBOutlet @objc var IQLayoutGuideConstraint: NSLayoutConstraint? { get { return objc_getAssociatedObject(self, &kIQLayoutGuideConstraint) as? NSLayoutConstraint diff --git a/IQKeyboardManagerSwift/IQToolbar/IQUIView+IQKeyboardToolbar.swift b/IQKeyboardManagerSwift/IQToolbar/IQUIView+IQKeyboardToolbar.swift index 78a4c136..e58ec15f 100644 --- a/IQKeyboardManagerSwift/IQToolbar/IQUIView+IQKeyboardToolbar.swift +++ b/IQKeyboardManagerSwift/IQToolbar/IQUIView+IQKeyboardToolbar.swift @@ -86,7 +86,7 @@ private var kIQKeyboardToolbar = "kIQKeyboardToolbar" */ @objc public extension UIImage { - @objc public static func keyboardPreviousiOS9Image() -> UIImage? { + @objc static func keyboardPreviousiOS9Image() -> UIImage? { struct Static { static var keyboardPreviousiOS9Image : UIImage? @@ -113,7 +113,7 @@ private var kIQKeyboardToolbar = "kIQKeyboardToolbar" return Static.keyboardPreviousiOS9Image } - @objc public static func keyboardNextiOS9Image() -> UIImage? { + @objc static func keyboardNextiOS9Image() -> UIImage? { struct Static { static var keyboardNextiOS9Image : UIImage? @@ -140,7 +140,7 @@ private var kIQKeyboardToolbar = "kIQKeyboardToolbar" return Static.keyboardNextiOS9Image } - @objc public static func keyboardPreviousiOS10Image() -> UIImage? { + @objc static func keyboardPreviousiOS10Image() -> UIImage? { struct Static { static var keyboardPreviousiOS10Image : UIImage? @@ -167,7 +167,7 @@ private var kIQKeyboardToolbar = "kIQKeyboardToolbar" return Static.keyboardPreviousiOS10Image } - @objc public static func keyboardNextiOS10Image() -> UIImage? { + @objc static func keyboardNextiOS10Image() -> UIImage? { struct Static { static var keyboardNextiOS10Image : UIImage? @@ -194,7 +194,7 @@ private var kIQKeyboardToolbar = "kIQKeyboardToolbar" return Static.keyboardNextiOS10Image } - @objc public static func keyboardPreviousImage() -> UIImage? { + @objc static func keyboardPreviousImage() -> UIImage? { if #available(iOS 10, *) { return keyboardPreviousiOS10Image() @@ -203,7 +203,7 @@ private var kIQKeyboardToolbar = "kIQKeyboardToolbar" } } - @objc public static func keyboardNextImage() -> UIImage? { + @objc static func keyboardNextImage() -> UIImage? { if #available(iOS 10, *) { return keyboardNextiOS10Image() @@ -225,7 +225,7 @@ UIView category methods to add IQToolbar on UIKeyboard. /** IQToolbar references for better customization control. */ - @objc public var keyboardToolbar: IQToolbar { + @objc var keyboardToolbar: IQToolbar { var toolbar = inputAccessoryView as? IQToolbar if (toolbar == nil) @@ -254,7 +254,7 @@ UIView category methods to add IQToolbar on UIKeyboard. /** If `shouldHideToolbarPlaceholder` is YES, then title will not be added to the toolbar. Default to NO. */ - @objc public var shouldHideToolbarPlaceholder: Bool { + @objc var shouldHideToolbarPlaceholder: Bool { get { let aValue = objc_getAssociatedObject(self, &kIQShouldHideToolbarPlaceholder) as Any? @@ -274,7 +274,7 @@ UIView category methods to add IQToolbar on UIKeyboard. /** `toolbarPlaceholder` to override default `placeholder` text when drawing text on toolbar. */ - @objc public var toolbarPlaceholder: String? { + @objc var toolbarPlaceholder: String? { get { let aValue = objc_getAssociatedObject(self, &kIQToolbarPlaceholder) as? String @@ -290,7 +290,7 @@ UIView category methods to add IQToolbar on UIKeyboard. /** `drawingToolbarPlaceholder` will be actual text used to draw on toolbar. This would either `placeholder` or `toolbarPlaceholder`. */ - @objc public var drawingToolbarPlaceholder: String? { + @objc var drawingToolbarPlaceholder: String? { if (self.shouldHideToolbarPlaceholder) { @@ -333,7 +333,7 @@ UIView category methods to add IQToolbar on UIKeyboard. /// MARK: Common ///------------- - @objc public func addKeyboardToolbarWithTarget(target : AnyObject?, titleText : String?, rightBarButtonConfiguration:IQBarButtonItemConfiguration?, previousBarButtonConfiguration:IQBarButtonItemConfiguration? = nil, nextBarButtonConfiguration:IQBarButtonItemConfiguration? = nil) { + @objc func addKeyboardToolbarWithTarget(target : AnyObject?, titleText : String?, rightBarButtonConfiguration:IQBarButtonItemConfiguration?, previousBarButtonConfiguration:IQBarButtonItemConfiguration? = nil, nextBarButtonConfiguration:IQBarButtonItemConfiguration? = nil) { //If can't set InputAccessoryView. Then return if self.responds(to: #selector(setter: UITextField.inputAccessoryView)) { @@ -482,12 +482,12 @@ UIView category methods to add IQToolbar on UIKeyboard. /// MARK: Right ///------------ - @objc public func addDoneOnKeyboardWithTarget(_ target : AnyObject?, action : Selector, shouldShowPlaceholder: Bool = false) { + @objc func addDoneOnKeyboardWithTarget(_ target : AnyObject?, action : Selector, shouldShowPlaceholder: Bool = false) { addDoneOnKeyboardWithTarget(target, action: action, titleText: (shouldShowPlaceholder ? self.drawingToolbarPlaceholder : nil)) } - @objc public func addDoneOnKeyboardWithTarget(_ target : AnyObject?, action : Selector, titleText: String?) { + @objc func addDoneOnKeyboardWithTarget(_ target : AnyObject?, action : Selector, titleText: String?) { let rightConfiguration = IQBarButtonItemConfiguration(barButtonSystemItem: .done, action: action) @@ -495,12 +495,12 @@ UIView category methods to add IQToolbar on UIKeyboard. } - @objc public func addRightButtonOnKeyboardWithImage(_ image : UIImage, target : AnyObject?, action : Selector, shouldShowPlaceholder: Bool = false) { + @objc func addRightButtonOnKeyboardWithImage(_ image : UIImage, target : AnyObject?, action : Selector, shouldShowPlaceholder: Bool = false) { addRightButtonOnKeyboardWithImage(image, target: target, action: action, titleText: (shouldShowPlaceholder ? self.drawingToolbarPlaceholder : nil)) } - @objc public func addRightButtonOnKeyboardWithImage(_ image : UIImage, target : AnyObject?, action : Selector, titleText: String?) { + @objc func addRightButtonOnKeyboardWithImage(_ image : UIImage, target : AnyObject?, action : Selector, titleText: String?) { let rightConfiguration = IQBarButtonItemConfiguration(image: image, action: action) @@ -508,12 +508,12 @@ UIView category methods to add IQToolbar on UIKeyboard. } - @objc public func addRightButtonOnKeyboardWithText(_ text : String, target : AnyObject?, action : Selector, shouldShowPlaceholder: Bool = false) { + @objc func addRightButtonOnKeyboardWithText(_ text : String, target : AnyObject?, action : Selector, shouldShowPlaceholder: Bool = false) { addRightButtonOnKeyboardWithText(text, target: target, action: action, titleText: (shouldShowPlaceholder ? self.drawingToolbarPlaceholder : nil)) } - @objc public func addRightButtonOnKeyboardWithText(_ text : String, target : AnyObject?, action : Selector, titleText: String?) { + @objc func addRightButtonOnKeyboardWithText(_ text : String, target : AnyObject?, action : Selector, titleText: String?) { let rightConfiguration = IQBarButtonItemConfiguration(title: text, action: action) @@ -524,22 +524,22 @@ UIView category methods to add IQToolbar on UIKeyboard. /// MARK: Right/Left ///----------------- - @objc public func addCancelDoneOnKeyboardWithTarget(_ target : AnyObject?, cancelAction : Selector, doneAction : Selector, shouldShowPlaceholder: Bool = false) { + @objc func addCancelDoneOnKeyboardWithTarget(_ target : AnyObject?, cancelAction : Selector, doneAction : Selector, shouldShowPlaceholder: Bool = false) { addCancelDoneOnKeyboardWithTarget(target, cancelAction: cancelAction, doneAction: doneAction, titleText: (shouldShowPlaceholder ? self.drawingToolbarPlaceholder : nil)) } - @objc public func addRightLeftOnKeyboardWithTarget(_ target : AnyObject?, leftButtonTitle : String, rightButtonTitle : String, leftButtonAction : Selector, rightButtonAction : Selector, shouldShowPlaceholder: Bool = false) { + @objc func addRightLeftOnKeyboardWithTarget(_ target : AnyObject?, leftButtonTitle : String, rightButtonTitle : String, leftButtonAction : Selector, rightButtonAction : Selector, shouldShowPlaceholder: Bool = false) { addRightLeftOnKeyboardWithTarget(target, leftButtonTitle: leftButtonTitle, rightButtonTitle: rightButtonTitle, leftButtonAction: leftButtonAction, rightButtonAction: rightButtonAction, titleText: (shouldShowPlaceholder ? self.drawingToolbarPlaceholder : nil)) } - @objc public func addRightLeftOnKeyboardWithTarget(_ target : AnyObject?, leftButtonImage : UIImage, rightButtonImage : UIImage, leftButtonAction : Selector, rightButtonAction : Selector, shouldShowPlaceholder: Bool = false) { + @objc func addRightLeftOnKeyboardWithTarget(_ target : AnyObject?, leftButtonImage : UIImage, rightButtonImage : UIImage, leftButtonAction : Selector, rightButtonAction : Selector, shouldShowPlaceholder: Bool = false) { addRightLeftOnKeyboardWithTarget(target, leftButtonImage: leftButtonImage, rightButtonImage: rightButtonImage, leftButtonAction: leftButtonAction, rightButtonAction: rightButtonAction, titleText: (shouldShowPlaceholder ? self.drawingToolbarPlaceholder : nil)) } - @objc public func addCancelDoneOnKeyboardWithTarget(_ target : AnyObject?, cancelAction : Selector, doneAction : Selector, titleText: String?) { + @objc func addCancelDoneOnKeyboardWithTarget(_ target : AnyObject?, cancelAction : Selector, doneAction : Selector, titleText: String?) { let leftConfiguration = IQBarButtonItemConfiguration(barButtonSystemItem: .cancel, action: cancelAction) let rightConfiguration = IQBarButtonItemConfiguration(barButtonSystemItem: .done , action: doneAction) @@ -547,7 +547,7 @@ UIView category methods to add IQToolbar on UIKeyboard. addKeyboardToolbarWithTarget(target: target, titleText: titleText, rightBarButtonConfiguration: rightConfiguration, previousBarButtonConfiguration: leftConfiguration) } - @objc public func addRightLeftOnKeyboardWithTarget(_ target : AnyObject?, leftButtonTitle : String, rightButtonTitle : String, leftButtonAction : Selector, rightButtonAction : Selector, titleText: String?) { + @objc func addRightLeftOnKeyboardWithTarget(_ target : AnyObject?, leftButtonTitle : String, rightButtonTitle : String, leftButtonAction : Selector, rightButtonAction : Selector, titleText: String?) { let leftConfiguration = IQBarButtonItemConfiguration(title: leftButtonTitle, action: leftButtonAction) let rightConfiguration = IQBarButtonItemConfiguration(title: rightButtonTitle, action: rightButtonAction) @@ -555,7 +555,7 @@ UIView category methods to add IQToolbar on UIKeyboard. addKeyboardToolbarWithTarget(target: target, titleText: titleText, rightBarButtonConfiguration: rightConfiguration, previousBarButtonConfiguration: leftConfiguration) } - @objc public func addRightLeftOnKeyboardWithTarget(_ target : AnyObject?, leftButtonImage : UIImage, rightButtonImage : UIImage, leftButtonAction : Selector, rightButtonAction : Selector, titleText: String?) { + @objc func addRightLeftOnKeyboardWithTarget(_ target : AnyObject?, leftButtonImage : UIImage, rightButtonImage : UIImage, leftButtonAction : Selector, rightButtonAction : Selector, titleText: String?) { let leftConfiguration = IQBarButtonItemConfiguration(image: leftButtonImage, action: leftButtonAction) let rightConfiguration = IQBarButtonItemConfiguration(image: rightButtonImage, action: rightButtonAction) @@ -567,22 +567,22 @@ UIView category methods to add IQToolbar on UIKeyboard. /// MARK: Previous/Next/Right ///-------------------------- - @objc public func addPreviousNextDoneOnKeyboardWithTarget (_ target : AnyObject?, previousAction : Selector, nextAction : Selector, doneAction : Selector, shouldShowPlaceholder: Bool = false) { + @objc func addPreviousNextDoneOnKeyboardWithTarget (_ target : AnyObject?, previousAction : Selector, nextAction : Selector, doneAction : Selector, shouldShowPlaceholder: Bool = false) { addPreviousNextDoneOnKeyboardWithTarget(target, previousAction: previousAction, nextAction: nextAction, doneAction: doneAction, titleText: (shouldShowPlaceholder ? self.drawingToolbarPlaceholder : nil)) } - @objc public func addPreviousNextRightOnKeyboardWithTarget(_ target : AnyObject?, rightButtonImage : UIImage, previousAction : Selector, nextAction : Selector, rightButtonAction : Selector, shouldShowPlaceholder : Bool = false) { + @objc func addPreviousNextRightOnKeyboardWithTarget(_ target : AnyObject?, rightButtonImage : UIImage, previousAction : Selector, nextAction : Selector, rightButtonAction : Selector, shouldShowPlaceholder : Bool = false) { addPreviousNextRightOnKeyboardWithTarget(target, rightButtonImage: rightButtonImage, previousAction: previousAction, nextAction: nextAction, rightButtonAction: rightButtonAction, titleText: (shouldShowPlaceholder ? self.drawingToolbarPlaceholder : nil)) } - @objc public func addPreviousNextRightOnKeyboardWithTarget(_ target : AnyObject?, rightButtonTitle : String, previousAction : Selector, nextAction : Selector, rightButtonAction : Selector, shouldShowPlaceholder : Bool = false) { + @objc func addPreviousNextRightOnKeyboardWithTarget(_ target : AnyObject?, rightButtonTitle : String, previousAction : Selector, nextAction : Selector, rightButtonAction : Selector, shouldShowPlaceholder : Bool = false) { addPreviousNextRightOnKeyboardWithTarget(target, rightButtonTitle: rightButtonTitle, previousAction: previousAction, nextAction: nextAction, rightButtonAction: rightButtonAction, titleText: (shouldShowPlaceholder ? self.drawingToolbarPlaceholder : nil)) } - @objc public func addPreviousNextDoneOnKeyboardWithTarget (_ target : AnyObject?, previousAction : Selector, nextAction : Selector, doneAction : Selector, titleText: String?) { + @objc func addPreviousNextDoneOnKeyboardWithTarget (_ target : AnyObject?, previousAction : Selector, nextAction : Selector, doneAction : Selector, titleText: String?) { let rightConfiguration = IQBarButtonItemConfiguration(barButtonSystemItem: .done, action: doneAction) let nextConfiguration = IQBarButtonItemConfiguration(image: UIImage.keyboardNextImage() ?? UIImage(), action: nextAction) @@ -591,7 +591,7 @@ UIView category methods to add IQToolbar on UIKeyboard. addKeyboardToolbarWithTarget(target: target, titleText: titleText, rightBarButtonConfiguration: rightConfiguration, previousBarButtonConfiguration: prevConfiguration, nextBarButtonConfiguration: nextConfiguration) } - @objc public func addPreviousNextRightOnKeyboardWithTarget(_ target : AnyObject?, rightButtonImage : UIImage, previousAction : Selector, nextAction : Selector, rightButtonAction : Selector, titleText : String?) { + @objc func addPreviousNextRightOnKeyboardWithTarget(_ target : AnyObject?, rightButtonImage : UIImage, previousAction : Selector, nextAction : Selector, rightButtonAction : Selector, titleText : String?) { let rightConfiguration = IQBarButtonItemConfiguration(image: rightButtonImage, action: rightButtonAction) let nextConfiguration = IQBarButtonItemConfiguration(image: UIImage.keyboardNextImage() ?? UIImage(), action: nextAction) @@ -600,7 +600,7 @@ UIView category methods to add IQToolbar on UIKeyboard. addKeyboardToolbarWithTarget(target: target, titleText: titleText, rightBarButtonConfiguration: rightConfiguration, previousBarButtonConfiguration: prevConfiguration, nextBarButtonConfiguration: nextConfiguration) } - @objc public func addPreviousNextRightOnKeyboardWithTarget(_ target : AnyObject?, rightButtonTitle : String, previousAction : Selector, nextAction : Selector, rightButtonAction : Selector, titleText : String?) { + @objc func addPreviousNextRightOnKeyboardWithTarget(_ target : AnyObject?, rightButtonTitle : String, previousAction : Selector, nextAction : Selector, rightButtonAction : Selector, titleText : String?) { let rightConfiguration = IQBarButtonItemConfiguration(title: rightButtonTitle, action: rightButtonAction) let nextConfiguration = IQBarButtonItemConfiguration(image: UIImage.keyboardNextImage() ?? UIImage(), action: nextAction)