Skip to content

Commit

Permalink
Fix config
Browse files Browse the repository at this point in the history
  • Loading branch information
SungjunApp committed Dec 10, 2020
1 parent 3092dbe commit 1f7d2b0
Show file tree
Hide file tree
Showing 9 changed files with 225 additions and 231 deletions.
10 changes: 5 additions & 5 deletions Classes/PixleeDoneKeyboard.swift
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ extension UIViewController {

public func SJDoneKeyboard(dismissOnTap:Bool) {
// Setup Keyboard observers
NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillChange(notification:)), name: NSNotification.Name.UIKeyboardWillShow, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillChange(notification:)), name: NSNotification.Name.UIKeyboardWillHide, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillChange(notification:)), name: NSNotification.Name.UIKeyboardWillChangeFrame, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillChange(notification:)), name: UIResponder.keyboardWillShowNotification, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillChange(notification:)), name: UIResponder.keyboardWillHideNotification, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillChange(notification:)), name: UIResponder.keyboardWillChangeFrameNotification, object: nil)

// Setup Tap Gesture to dismiss keyboard on tap
if dismissOnTap {
Expand Down Expand Up @@ -128,9 +128,9 @@ extension UIViewController {
}

// Calculate keyboard size
guard let keyboardSize = (notification.userInfo?[UIKeyboardFrameEndUserInfoKey] as? NSValue)?.cgRectValue else { return }
guard let keyboardSize = (notification.userInfo?[UIResponder.keyboardFrameEndUserInfoKey] as? NSValue)?.cgRectValue else { return }

if notification.name == NSNotification.Name.UIKeyboardWillChangeFrame || notification.name == NSNotification.Name.UIKeyboardWillShow {
if notification.name == UIResponder.keyboardWillChangeFrameNotification || notification.name == UIResponder.keyboardWillShowNotification {

// Check if location is > (ViewHeight - KeyboardHeight - TextFieldOrViewHeight - Margin8)
if(location > (self.view.frame.height - keyboardSize.height - tfvHeight - 8) ) {
Expand Down
14 changes: 8 additions & 6 deletions Example/PixleeTestCocoapods.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -213,12 +213,12 @@
607FACCF1AFB9204008FA782 = {
CreatedOnToolsVersion = 6.3.1;
DevelopmentTeam = Q28M29YQL8;
LastSwiftMigration = 0900;
LastSwiftMigration = 1220;
};
607FACE41AFB9204008FA782 = {
CreatedOnToolsVersion = 6.3.1;
DevelopmentTeam = Q28M29YQL8;
LastSwiftMigration = 0900;
LastSwiftMigration = 1220;
TestTargetID = 607FACCF1AFB9204008FA782;
};
};
Expand Down Expand Up @@ -489,12 +489,13 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
DEVELOPMENT_TEAM = Q28M29YQL8;
INFOPLIST_FILE = PixleeTestCocoapods/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MODULE_NAME = ExampleApp;
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 5.0;
};
name = Debug;
};
Expand All @@ -505,12 +506,13 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
DEVELOPMENT_TEAM = Q28M29YQL8;
INFOPLIST_FILE = PixleeTestCocoapods/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MODULE_NAME = ExampleApp;
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 5.0;
};
name = Release;
};
Expand All @@ -532,7 +534,7 @@
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/PixleeTestCocoapods_Example.app/PixleeTestCocoapods_Example";
};
name = Debug;
Expand All @@ -551,7 +553,7 @@
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/PixleeTestCocoapods_Example.app/PixleeTestCocoapods_Example";
};
name = Release;
Expand Down
2 changes: 1 addition & 1 deletion Example/PixleeTestCocoapods/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?


func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
return true
}
Expand Down
6 changes: 3 additions & 3 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- PixleeTestCocoapods (0.1.0)
- PixleeTestCocoapods (1.0.0)

DEPENDENCIES:
- PixleeTestCocoapods (from `../`)
Expand All @@ -9,8 +9,8 @@ EXTERNAL SOURCES:
:path: "../"

SPEC CHECKSUMS:
PixleeTestCocoapods: 1e4ee9d6413db429a383e4a2495b17108b4574ef
PixleeTestCocoapods: 4afeda575b5f7718f379a5892a789deeab57fc86

PODFILE CHECKSUM: d0693e727104eb7e451a4ba7824142a9626f57a0
PODFILE CHECKSUM: efd7ca61551e0c2af4eab938246b3bd0da8a3bcf

COCOAPODS: 1.9.3
16 changes: 9 additions & 7 deletions Example/Pods/Local Podspecs/PixleeTestCocoapods.podspec.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Example/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1f7d2b0

Please sign in to comment.