diff --git a/Todoary-iOS/Todoary.xcodeproj/project.pbxproj b/Todoary-iOS/Todoary.xcodeproj/project.pbxproj index 080f845f..ebbd2fb7 100644 --- a/Todoary-iOS/Todoary.xcodeproj/project.pbxproj +++ b/Todoary-iOS/Todoary.xcodeproj/project.pbxproj @@ -210,11 +210,11 @@ EE800B1229B1C4F100BAC862 /* UserDefaultKey.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE800B1129B1C4F100BAC862 /* UserDefaultKey.swift */; }; EE800B1429B1C4FE00BAC862 /* UserDefaultWrapper.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE800B1329B1C4FE00BAC862 /* UserDefaultWrapper.swift */; }; EE800B1629B1C50A00BAC862 /* UserManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE800B1529B1C50A00BAC862 /* UserManager.swift */; }; - EE813FD629C3258B0091F16E /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = EE813FD529C3258B0091F16E /* GoogleService-Info.plist */; }; EE8BCEF6299F2836004EA821 /* UITableView.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE8BCEF5299F2836004EA821 /* UITableView.swift */; }; EE8BCEF8299F2842004EA821 /* UICollectionView.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE8BCEF7299F2842004EA821 /* UICollectionView.swift */; }; EE8BCEFA299F3AF9004EA821 /* ShadowDesignSystem.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE8BCEF9299F3AF9004EA821 /* ShadowDesignSystem.swift */; }; EE8BCEFC299F4F48004EA821 /* SummaryCellDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE8BCEFB299F4F48004EA821 /* SummaryCellDelegate.swift */; }; + EE938DA529CE864A003A5BF6 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = EE938DA429CE864A003A5BF6 /* GoogleService-Info.plist */; }; EED1B34E298656E600F14CAC /* TypoDesignSystem.swift in Sources */ = {isa = PBXBuildFile; fileRef = EED1B34D298656E600F14CAC /* TypoDesignSystem.swift */; }; EED1B350298656FD00F14CAC /* CategoryDesignSystem.swift in Sources */ = {isa = PBXBuildFile; fileRef = EED1B34F298656FD00F14CAC /* CategoryDesignSystem.swift */; }; EEE326A52998AEB50017DF46 /* Image.swift in Sources */ = {isa = PBXBuildFile; fileRef = EEE326A42998AEB50017DF46 /* Image.swift */; }; @@ -458,11 +458,11 @@ EE800B1129B1C4F100BAC862 /* UserDefaultKey.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UserDefaultKey.swift; sourceTree = ""; }; EE800B1329B1C4FE00BAC862 /* UserDefaultWrapper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UserDefaultWrapper.swift; sourceTree = ""; }; EE800B1529B1C50A00BAC862 /* UserManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UserManager.swift; sourceTree = ""; }; - EE813FD529C3258B0091F16E /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = ""; }; EE8BCEF5299F2836004EA821 /* UITableView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UITableView.swift; sourceTree = ""; }; EE8BCEF7299F2842004EA821 /* UICollectionView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UICollectionView.swift; sourceTree = ""; }; EE8BCEF9299F3AF9004EA821 /* ShadowDesignSystem.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShadowDesignSystem.swift; sourceTree = ""; }; EE8BCEFB299F4F48004EA821 /* SummaryCellDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SummaryCellDelegate.swift; sourceTree = ""; }; + EE938DA429CE864A003A5BF6 /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = ""; }; EED1B34D298656E600F14CAC /* TypoDesignSystem.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TypoDesignSystem.swift; sourceTree = ""; }; EED1B34F298656FD00F14CAC /* CategoryDesignSystem.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CategoryDesignSystem.swift; sourceTree = ""; }; EEE326A42998AEB50017DF46 /* Image.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Image.swift; sourceTree = ""; }; @@ -573,7 +573,7 @@ isa = PBXGroup; children = ( 572E5AE4286EBDCE00D1FAA0 /* LaunchScreen.storyboard */, - EE813FD529C3258B0091F16E /* GoogleService-Info.plist */, + EE938DA429CE864A003A5BF6 /* GoogleService-Info.plist */, 572E5AE7286EBDCE00D1FAA0 /* Info.plist */, EE00BBA029ADAC25007CE728 /* Config.xcconfig */, ); @@ -1600,7 +1600,7 @@ 57DF460528A64AA60002D66C /* IBMPlexSansKR-Medium.otf in Resources */, 572E5AE1286EBDCC00D1FAA0 /* Main.storyboard in Resources */, 57DF45FA28A60B310002D66C /* GangwonEduAll-Bold.ttf in Resources */, - EE813FD629C3258B0091F16E /* GoogleService-Info.plist in Resources */, + EE938DA529CE864A003A5BF6 /* GoogleService-Info.plist in Resources */, E0BAB97D28748FBF0055BA67 /* SsoyaStoryboard.storyboard in Resources */, 57DF45F628A60B310002D66C /* NotoSerifKR-Regular.otf in Resources */, 574A703A2883FF10003C8F99 /* AppleSDGothicNeoEB.ttf in Resources */, diff --git a/Todoary-iOS/Todoary/Application/AppDelegate.swift b/Todoary-iOS/Todoary/Application/AppDelegate.swift index 6718f4a1..73b96e7e 100644 --- a/Todoary-iOS/Todoary/Application/AppDelegate.swift +++ b/Todoary-iOS/Todoary/Application/AppDelegate.swift @@ -106,6 +106,22 @@ class AppDelegate: UIResponder, UIApplicationDelegate, MessagingDelegate { func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) -> UIInterfaceOrientationMask { return UIInterfaceOrientationMask.portrait } + + //다른 앱으로 이동시 호출되는 메서드 + func applicationDidEnterBackground(_ application: UIApplication) { + diaryWillMoveOriginalPosition() + } + + //background에 있는 앱을 모두 보여주는 상태(홈바 스와이프)로 진입할 때 호출되는 메서드 + func applicationWillResignActive(_ application: UIApplication) { + diaryWillMoveOriginalPosition() + } + + private func diaryWillMoveOriginalPosition(){ + if let vc = window?.rootViewController?.children.last as? DiaryViewController { + vc.exitBtnDidTab() + } + } }