From 6a7bcc12cc673c00727f16514068036fed8b43d1 Mon Sep 17 00:00:00 2001 From: HeonJin Ha Date: Thu, 14 Sep 2023 23:14:59 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=EB=B0=B0=ED=8F=AC=20=EC=A0=84=20?= =?UTF-8?q?=EC=BD=94=EB=93=9C=20=EC=A0=95=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Presentation/DeepLinkWidgetView.swift | 11 +--------- .../Presentation/WidgetTypes.swift | 14 ++++++++++++ koget.xcodeproj/project.pbxproj | 22 +++++++++++++------ 3 files changed, 30 insertions(+), 17 deletions(-) create mode 100644 LockScreenWidget/Presentation/WidgetTypes.swift diff --git a/LockScreenWidget/Presentation/DeepLinkWidgetView.swift b/LockScreenWidget/Presentation/DeepLinkWidgetView.swift index 8ebdc92..d8aa1d0 100644 --- a/LockScreenWidget/Presentation/DeepLinkWidgetView.swift +++ b/LockScreenWidget/Presentation/DeepLinkWidgetView.swift @@ -9,13 +9,6 @@ import WidgetKit import SwiftUI import Intents import CoreData -import SFSafeSymbols - -enum WidgetTypes { - case placeholder - case widget - case error -} // MARK: - Widget View struct DeepLinkWidgetView: View { @@ -30,9 +23,7 @@ struct DeepLinkWidgetView: View { var body: some View { if #available(iOS 17.0, *) { mainWidgetView - .containerBackground(for: .widget) { - Color.white - } + .containerBackground(Color.clear, for: .widget) } else { mainWidgetView } diff --git a/LockScreenWidget/Presentation/WidgetTypes.swift b/LockScreenWidget/Presentation/WidgetTypes.swift new file mode 100644 index 0000000..d1781f0 --- /dev/null +++ b/LockScreenWidget/Presentation/WidgetTypes.swift @@ -0,0 +1,14 @@ +// +// WidgetTypes.swift +// koget +// +// Created by HeonJin Ha on 9/9/23. +// + +import Foundation + +enum WidgetTypes { + case placeholder + case widget + case error +} diff --git a/koget.xcodeproj/project.pbxproj b/koget.xcodeproj/project.pbxproj index eebba84..ab0caa4 100644 --- a/koget.xcodeproj/project.pbxproj +++ b/koget.xcodeproj/project.pbxproj @@ -125,6 +125,9 @@ 39B0C3812AAC5F92004E0985 /* DeepLinkEntry.swift in Sources */ = {isa = PBXBuildFile; fileRef = 39B0C3802AAC5F92004E0985 /* DeepLinkEntry.swift */; }; 39B0C3822AAC5F93004E0985 /* DeepLinkEntry.swift in Sources */ = {isa = PBXBuildFile; fileRef = 39B0C3802AAC5F92004E0985 /* DeepLinkEntry.swift */; }; 39B0C3832AAC5F97004E0985 /* DeepLinkEntry.swift in Sources */ = {isa = PBXBuildFile; fileRef = 39B0C3802AAC5F92004E0985 /* DeepLinkEntry.swift */; }; + 39B0C3902AAC6C87004E0985 /* WidgetTypes.swift in Sources */ = {isa = PBXBuildFile; fileRef = 39B0C38F2AAC6C87004E0985 /* WidgetTypes.swift */; }; + 39B0C3912AAC6C87004E0985 /* WidgetTypes.swift in Sources */ = {isa = PBXBuildFile; fileRef = 39B0C38F2AAC6C87004E0985 /* WidgetTypes.swift */; }; + 39B0C3922AAC6C87004E0985 /* WidgetTypes.swift in Sources */ = {isa = PBXBuildFile; fileRef = 39B0C38F2AAC6C87004E0985 /* WidgetTypes.swift */; }; 39BA5F2C29D2B4730020138E /* WidgetsBundle.swift in Sources */ = {isa = PBXBuildFile; fileRef = 39BA5F2A29D2B1AF0020138E /* WidgetsBundle.swift */; }; 39BBB53E29F96BBD0071EBB5 /* BaseViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 39BBB53D29F96BBD0071EBB5 /* BaseViewModel.swift */; }; 39BD3EE12A13766000E14DCA /* UIApplication+Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 39BD3EE02A13766000E14DCA /* UIApplication+Extension.swift */; }; @@ -332,6 +335,7 @@ 39B0C3722AABD04B004E0985 /* TestDeepLink.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestDeepLink.swift; sourceTree = ""; }; 39B0C3762AABD5F5004E0985 /* UICollectionReusableView+Extension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UICollectionReusableView+Extension.swift"; sourceTree = ""; }; 39B0C3802AAC5F92004E0985 /* DeepLinkEntry.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DeepLinkEntry.swift; sourceTree = ""; }; + 39B0C38F2AAC6C87004E0985 /* WidgetTypes.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WidgetTypes.swift; sourceTree = ""; }; 39B5BC6529C6EB5D007AB072 /* .gitignore */ = {isa = PBXFileReference; lastKnownFileType = text; path = .gitignore; sourceTree = ""; }; 39B7B69629AA032E0028AE10 /* DetailWidgetViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DetailWidgetViewModel.swift; sourceTree = ""; }; 39BA5F2A29D2B1AF0020138E /* WidgetsBundle.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WidgetsBundle.swift; sourceTree = ""; }; @@ -656,6 +660,7 @@ children = ( 3AF9F00828ED570D00F685E6 /* DeepLinkWidget.swift */, 39694FE729E6AEDC00F2C75C /* DeepLinkWidgetView.swift */, + 39B0C38F2AAC6C87004E0985 /* WidgetTypes.swift */, ); path = Presentation; sourceTree = ""; @@ -1046,8 +1051,8 @@ children = ( 3A9BC0CE28E6C93A0041DA1B /* LockScreenWidgetExtension.entitlements */, 39BA5F2A29D2B1AF0020138E /* WidgetsBundle.swift */, - 39B0C37C2AAC5F34004E0985 /* Provider */, 39B0C37D2AAC5F45004E0985 /* Presentation */, + 39B0C37C2AAC5F34004E0985 /* Provider */, 39B0C37E2AAC5F5E004E0985 /* Utils */, 39B0C37F2AAC5F72004E0985 /* Resources */, 3AF9F00C28ED570E00F685E6 /* Info.plist */, @@ -1287,6 +1292,7 @@ 3915106B2A2EFC4A000BDC14 /* WidgetCoreData.swift in Sources */, 39B0C3832AAC5F97004E0985 /* DeepLinkEntry.swift in Sources */, 39694FE229E69B3D00F2C75C /* WidgetConstant.swift in Sources */, + 39B0C3922AAC6C87004E0985 /* WidgetTypes.swift in Sources */, 39694FE929E6AEEB00F2C75C /* DeepLinkWidgetView.swift in Sources */, 395DC34B2A1CC61800EA310E /* EntityFetching.swift in Sources */, 394D69F32A34319400EC0A02 /* Image+Extestion.swift in Sources */, @@ -1323,6 +1329,7 @@ 39D441B02A5C279100C9D11D /* CreateWidgetViewModel.swift in Sources */, 3A1F890A297AB25700E1B4C4 /* MainView.swift in Sources */, 3A3C11A328EDC14700C9CCED /* BaseWidgetService.swift in Sources */, + 39B0C3902AAC6C87004E0985 /* WidgetTypes.swift in Sources */, 3AD4691B297D19190090B2D3 /* ContactViewModel.swift in Sources */, 39EBEB5229BE0A7900B1FD54 /* PatchNoteManager.swift in Sources */, 3A00CA662931EFBE004FBF80 /* EditTextField.swift in Sources */, @@ -1445,6 +1452,7 @@ 3915106A2A2EFC49000BDC14 /* WidgetCoreData.swift in Sources */, 39B0C3822AAC5F93004E0985 /* DeepLinkEntry.swift in Sources */, 39694FE429E6AE8100F2C75C /* DeepLinkProvider.swift in Sources */, + 39B0C3912AAC6C87004E0985 /* WidgetTypes.swift in Sources */, 3979FA6B29D1D2E800900FBA /* IntentHandler.swift in Sources */, 394D69F22A34319300EC0A02 /* Image+Extestion.swift in Sources */, 394D69EE2A342F5500EC0A02 /* CommonImages.swift in Sources */, @@ -1506,7 +1514,7 @@ CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = ZH5GA3W8UP; GENERATE_INFOPLIST_FILE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 16.4; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = dev.heon.kogetTests; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -1528,7 +1536,7 @@ CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = ZH5GA3W8UP; GENERATE_INFOPLIST_FILE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 16.4; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = dev.heon.kogetTests; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -1741,7 +1749,7 @@ INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; INFOPLIST_KEY_UIStatusBarStyle = ""; - INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait"; + INFOPLIST_KEY_UISupportedInterfaceOrientations = UIInterfaceOrientationPortrait; IPHONEOS_DEPLOYMENT_TARGET = 16.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", @@ -1758,7 +1766,7 @@ SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; + TARGETED_DEVICE_FAMILY = 1; }; name = Debug; }; @@ -1782,7 +1790,7 @@ INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; INFOPLIST_KEY_UIStatusBarStyle = ""; - INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait"; + INFOPLIST_KEY_UISupportedInterfaceOrientations = UIInterfaceOrientationPortrait; IPHONEOS_DEPLOYMENT_TARGET = 16.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", @@ -1799,7 +1807,7 @@ SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_OPTIMIZATION_LEVEL = "-Osize"; SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; + TARGETED_DEVICE_FAMILY = 1; }; name = Release; };