Skip to content

Commit aa16b9e

Browse files
committed
- Removed some access specifiers giving us warnings.
1 parent 11ee276 commit aa16b9e

File tree

7 files changed

+42
-44
lines changed

7 files changed

+42
-44
lines changed

Demo.xcodeproj/project.pbxproj

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@
679679
C0ACB0F419CF104B0057B571 = {
680680
CreatedOnToolsVersion = 6.0.1;
681681
DevelopmentTeam = 7UUTF6T5P9;
682-
LastSwiftMigration = 0900;
682+
LastSwiftMigration = 1020;
683683
};
684684
C0B63B9A1781FAB1008D3B64 = {
685685
DevelopmentTeam = 7UUTF6T5P9;
@@ -1135,7 +1135,6 @@
11351135
PRODUCT_NAME = DemoSwift;
11361136
SWIFT_OBJC_BRIDGING_HEADER = "Demo/Swift_Demo/Resources/IQKeyboardManger-Swift-Bridging-Header.h";
11371137
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
1138-
SWIFT_SWIFT3_OBJC_INFERENCE = Off;
11391138
SWIFT_VERSION = 5.0;
11401139
TARGETED_DEVICE_FAMILY = "1,2";
11411140
};
@@ -1170,7 +1169,6 @@
11701169
PRODUCT_BUNDLE_IDENTIFIER = com.iftekhar.IQKeyboardManagerSwift;
11711170
PRODUCT_NAME = DemoSwift;
11721171
SWIFT_OBJC_BRIDGING_HEADER = "Demo/Swift_Demo/Resources/IQKeyboardManger-Swift-Bridging-Header.h";
1173-
SWIFT_SWIFT3_OBJC_INFERENCE = Off;
11741172
SWIFT_VERSION = 5.0;
11751173
TARGETED_DEVICE_FAMILY = "1,2";
11761174
};

IQKeyboardManagerSwift/Categories/IQNSArray+Sort.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ internal extension Array {
3636
/**
3737
Returns the array by sorting the UIView's by their tag property.
3838
*/
39-
internal func sortedArrayByTag() -> [Element] {
39+
func sortedArrayByTag() -> [Element] {
4040

4141
return sorted(by: { (obj1 : Element, obj2 : Element) -> Bool in
4242

@@ -50,7 +50,7 @@ internal extension Array {
5050
/**
5151
Returns the array by sorting the UIView's by their tag property.
5252
*/
53-
internal func sortedArrayByPosition() -> [Element] {
53+
func sortedArrayByPosition() -> [Element] {
5454

5555
return sorted(by: { (obj1 : Element, obj2 : Element) -> Bool in
5656

IQKeyboardManagerSwift/Categories/IQUIScrollView+Additions.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ private var kIQShouldRestoreScrollViewContentOffset = "kIQShouldRestoreScrollVie
3232
/**
3333
If YES, then scrollview will ignore scrolling (simply not scroll it) for adjusting textfield position. Default is NO.
3434
*/
35-
@objc public var shouldIgnoreScrollingAdjustment: Bool {
35+
@objc var shouldIgnoreScrollingAdjustment: Bool {
3636
get {
3737

3838
if let aValue = objc_getAssociatedObject(self, &kIQShouldIgnoreScrollingAdjustment) as? Bool {
@@ -49,7 +49,7 @@ private var kIQShouldRestoreScrollViewContentOffset = "kIQShouldRestoreScrollVie
4949
/**
5050
To set customized distance from keyboard for textField/textView. Can't be less than zero
5151
*/
52-
@objc public var shouldRestoreScrollViewContentOffset: Bool {
52+
@objc var shouldRestoreScrollViewContentOffset: Bool {
5353
get {
5454

5555
if let aValue = objc_getAssociatedObject(self, &kIQShouldRestoreScrollViewContentOffset) as? Bool {

IQKeyboardManagerSwift/Categories/IQUITextFieldView+Additions.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ UIView category for managing UITextField/UITextView
4242
/**
4343
To set customized distance from keyboard for textField/textView. Can't be less than zero
4444
*/
45-
@objc public var keyboardDistanceFromTextField: CGFloat {
45+
@objc var keyboardDistanceFromTextField: CGFloat {
4646
get {
4747

4848
if let aValue = objc_getAssociatedObject(self, &kIQKeyboardDistanceFromTextField) as? CGFloat {
@@ -59,7 +59,7 @@ UIView category for managing UITextField/UITextView
5959
/**
6060
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
6161
*/
62-
@objc public var ignoreSwitchingByNextPrevious: Bool {
62+
@objc var ignoreSwitchingByNextPrevious: Bool {
6363
get {
6464

6565
if let aValue = objc_getAssociatedObject(self, &kIQIgnoreSwitchingByNextPrevious) as? Bool {
@@ -93,7 +93,7 @@ UIView category for managing UITextField/UITextView
9393
/**
9494
Override resigns Keyboard on touching outside of UITextField/View behaviour for this particular textField.
9595
*/
96-
@objc public var shouldResignOnTouchOutsideMode: IQEnableMode {
96+
@objc var shouldResignOnTouchOutsideMode: IQEnableMode {
9797
get {
9898

9999
if let savedMode = objc_getAssociatedObject(self, &kIQKeyboardShouldResignOnTouchOutsideMode) as? IQEnableMode {

IQKeyboardManagerSwift/Categories/IQUIView+Hierarchy.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ UIView hierarchy category.
3636
/**
3737
Returns the UIViewController object that manages the receiver.
3838
*/
39-
@objc public func viewContainingController()->UIViewController? {
39+
@objc func viewContainingController()->UIViewController? {
4040

4141
var nextResponder: UIResponder? = self
4242

@@ -55,7 +55,7 @@ UIView hierarchy category.
5555
/**
5656
Returns the topMost UIViewController object in hierarchy.
5757
*/
58-
@objc public func topMostController()->UIViewController? {
58+
@objc func topMostController()->UIViewController? {
5959

6060
var controllersHierarchy = [UIViewController]()
6161

@@ -89,7 +89,7 @@ UIView hierarchy category.
8989
/**
9090
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.
9191
*/
92-
@objc public func parentContainerViewController()->UIViewController? {
92+
@objc func parentContainerViewController()->UIViewController? {
9393

9494
var matchController = viewContainingController()
9595
var parentContainerViewController : UIViewController?
@@ -148,7 +148,7 @@ UIView hierarchy category.
148148
/**
149149
Returns the superView of provided class type.
150150
*/
151-
@objc public func superviewOfClassType(_ classType:UIView.Type)->UIView? {
151+
@objc func superviewOfClassType(_ classType:UIView.Type)->UIView? {
152152

153153
var superView = superview
154154

IQKeyboardManagerSwift/Categories/IQUIViewController+Additions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ private var kIQLayoutGuideConstraint = "kIQLayoutGuideConstraint"
3535
@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
3636
*/
3737
@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.")
38-
@IBOutlet @objc public var IQLayoutGuideConstraint: NSLayoutConstraint? {
38+
@IBOutlet @objc var IQLayoutGuideConstraint: NSLayoutConstraint? {
3939
get {
4040

4141
return objc_getAssociatedObject(self, &kIQLayoutGuideConstraint) as? NSLayoutConstraint

0 commit comments

Comments
 (0)