Skip to content

Commit

Permalink
Merge pull request #22 from Idea-Archive/21-IQKeyBoardManager
Browse files Browse the repository at this point in the history
IQKeyBoardManager 라이브러리 import
  • Loading branch information
junseopark0331 authored Jul 26, 2023
2 parents 59ce85f + bd8cdfe commit 357fe84
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 10 deletions.
17 changes: 17 additions & 0 deletions Idea-Archive.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
785BBF242A25E9FE00186DDA /* Pretendard-Thin.otf in Resources */ = {isa = PBXBuildFile; fileRef = 785BBF1B2A25E9FE00186DDA /* Pretendard-Thin.otf */; };
785BBF252A25E9FE00186DDA /* Pretendard-Black.otf in Resources */ = {isa = PBXBuildFile; fileRef = 785BBF1C2A25E9FE00186DDA /* Pretendard-Black.otf */; };
785BBF262A25E9FE00186DDA /* Pretendard-Light.otf in Resources */ = {isa = PBXBuildFile; fileRef = 785BBF1D2A25E9FE00186DDA /* Pretendard-Light.otf */; };
786799362A700EEB002E76B0 /* IQKeyboardManagerSwift in Frameworks */ = {isa = PBXBuildFile; productRef = 786799352A700EEB002E76B0 /* IQKeyboardManagerSwift */; };
786DCB1129F81C9200228885 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 786DCB1029F81C9200228885 /* AppDelegate.swift */; };
786DCB1329F81C9200228885 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 786DCB1229F81C9200228885 /* SceneDelegate.swift */; };
786DCB1529F81C9200228885 /* BaseViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 786DCB1429F81C9200228885 /* BaseViewController.swift */; };
Expand Down Expand Up @@ -93,6 +94,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
786799362A700EEB002E76B0 /* IQKeyboardManagerSwift in Frameworks */,
785BBEF22A25AB8800186DDA /* SnapKit in Frameworks */,
78848A8C2A343E06001588AA /* RxKeyboard in Frameworks */,
785BBEF52A25AB9600186DDA /* Then in Frameworks */,
Expand Down Expand Up @@ -391,6 +393,7 @@
785BBEF42A25AB9600186DDA /* Then */,
78015C4A2A30CAEA00737055 /* AEOTPTextField */,
78848A8B2A343E06001588AA /* RxKeyboard */,
786799352A700EEB002E76B0 /* IQKeyboardManagerSwift */,
);
productName = "Idea-Archive";
productReference = 786DCB0D29F81C9200228885 /* Idea-Archive.app */;
Expand Down Expand Up @@ -425,6 +428,7 @@
785BBEF32A25AB9500186DDA /* XCRemoteSwiftPackageReference "Then" */,
78015C492A30CAEA00737055 /* XCRemoteSwiftPackageReference "junseopark-AEOTPTextField" */,
78848A8A2A343E06001588AA /* XCRemoteSwiftPackageReference "RxKeyboard" */,
786799342A700EEB002E76B0 /* XCRemoteSwiftPackageReference "IQKeyboardManager" */,
);
productRefGroup = 786DCB0E29F81C9200228885 /* Products */;
projectDirPath = "";
Expand Down Expand Up @@ -718,6 +722,14 @@
kind = branch;
};
};
786799342A700EEB002E76B0 /* XCRemoteSwiftPackageReference "IQKeyboardManager" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/hackiftekhar/IQKeyboardManager";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 6.0.0;
};
};
78848A8A2A343E06001588AA /* XCRemoteSwiftPackageReference "RxKeyboard" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/RxSwiftCommunity/RxKeyboard";
Expand All @@ -744,6 +756,11 @@
package = 785BBEF32A25AB9500186DDA /* XCRemoteSwiftPackageReference "Then" */;
productName = Then;
};
786799352A700EEB002E76B0 /* IQKeyboardManagerSwift */ = {
isa = XCSwiftPackageProductDependency;
package = 786799342A700EEB002E76B0 /* XCRemoteSwiftPackageReference "IQKeyboardManager" */;
productName = IQKeyboardManagerSwift;
};
78848A8B2A343E06001588AA /* RxKeyboard */ = {
isa = XCSwiftPackageProductDependency;
package = 78848A8A2A343E06001588AA /* XCRemoteSwiftPackageReference "RxKeyboard" */;
Expand Down
22 changes: 13 additions & 9 deletions Idea-Archive/Sources/Application/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -1,28 +1,32 @@
import UIKit
import IQKeyboardManagerSwift

@main
class AppDelegate: UIResponder, UIApplicationDelegate {


func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.

IQKeyboardManager.shared.enable = true
IQKeyboardManager.shared.enableAutoToolbar = false
IQKeyboardManager.shared.shouldResignOnTouchOutside = true

return true
}

// MARK: UISceneSession Lifecycle

func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
// Called when a new scene session is being created.
// Use this method to select a configuration to create the new scene with.

return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
}

func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) {
// Called when the user discards a scene session.
// If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
// Use this method to release any resources that were specific to the discarded scenes, as they will not return.
}


}

2 changes: 1 addition & 1 deletion Idea-Archive/Sources/Application/SceneDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
guard let windowScene = (scene as? UIWindowScene) else { return }
window = UIWindow(windowScene: windowScene)
window?.rootViewController = UINavigationController(rootViewController: FailAuthViewController())
window?.rootViewController = UINavigationController(rootViewController: LoginViewController())
window?.makeKeyAndVisible()
}

Expand Down

0 comments on commit 357fe84

Please sign in to comment.