Skip to content

Commit

Permalink
- Removed some access specifiers giving us warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
hackiftekhar committed Mar 28, 2019
1 parent 11ee276 commit aa16b9e
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 44 deletions.
4 changes: 1 addition & 3 deletions Demo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@
C0ACB0F419CF104B0057B571 = {
CreatedOnToolsVersion = 6.0.1;
DevelopmentTeam = 7UUTF6T5P9;
LastSwiftMigration = 0900;
LastSwiftMigration = 1020;
};
C0B63B9A1781FAB1008D3B64 = {
DevelopmentTeam = 7UUTF6T5P9;
Expand Down Expand Up @@ -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";
};
Expand Down Expand Up @@ -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";
};
Expand Down
4 changes: 2 additions & 2 deletions IQKeyboardManagerSwift/Categories/IQNSArray+Sort.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down
8 changes: 4 additions & 4 deletions IQKeyboardManagerSwift/Categories/IQUIView+Hierarchy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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]()

Expand Down Expand Up @@ -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?
Expand Down Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading

0 comments on commit aa16b9e

Please sign in to comment.