diff --git a/week4_minchae/WeatherApp/WeatherApp.xcodeproj/project.pbxproj b/week4_minchae/WeatherApp/WeatherApp.xcodeproj/project.pbxproj new file mode 100644 index 0000000..c51022f --- /dev/null +++ b/week4_minchae/WeatherApp/WeatherApp.xcodeproj/project.pbxproj @@ -0,0 +1,434 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 56; + objects = { + +/* Begin PBXBuildFile section */ + B1F8444E2BF130B600823C86 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = B1F8444D2BF130B600823C86 /* AppDelegate.swift */; }; + B1F844502BF130B600823C86 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = B1F8444F2BF130B600823C86 /* SceneDelegate.swift */; }; + B1F844522BF130B600823C86 /* WeatherViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = B1F844512BF130B600823C86 /* WeatherViewController.swift */; }; + B1F844572BF130B700823C86 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = B1F844562BF130B700823C86 /* Assets.xcassets */; }; + B1F8445A2BF130B700823C86 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = B1F844582BF130B700823C86 /* LaunchScreen.storyboard */; }; + B1F844692BF1343E00823C86 /* locationManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = B1F844682BF1343E00823C86 /* locationManager.swift */; }; + B1F8446B2BF1345500823C86 /* IAPManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = B1F8446A2BF1345500823C86 /* IAPManager.swift */; }; + B1F8446D2BF1346D00823C86 /* WeatherManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = B1F8446C2BF1346D00823C86 /* WeatherManager.swift */; }; + B1F8446F2BF135B000823C86 /* SettingsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = B1F8446E2BF135B000823C86 /* SettingsViewController.swift */; }; + B1F844712BF135EF00823C86 /* TabViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = B1F844702BF135EF00823C86 /* TabViewController.swift */; }; + B1F844732BF2A6A100823C86 /* CurrentWeatherView.swift in Sources */ = {isa = PBXBuildFile; fileRef = B1F844722BF2A6A100823C86 /* CurrentWeatherView.swift */; }; + B1F844752BF2A6D500823C86 /* SettingsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = B1F844742BF2A6D500823C86 /* SettingsView.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + B1F8444A2BF130B600823C86 /* WeatherApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = WeatherApp.app; sourceTree = BUILT_PRODUCTS_DIR; }; + B1F8444D2BF130B600823C86 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + B1F8444F2BF130B600823C86 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; + B1F844512BF130B600823C86 /* WeatherViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WeatherViewController.swift; sourceTree = ""; }; + B1F844562BF130B700823C86 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + B1F844592BF130B700823C86 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + B1F8445B2BF130B700823C86 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + B1F844612BF131D100823C86 /* WeatherApp.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = WeatherApp.entitlements; sourceTree = ""; }; + B1F844682BF1343E00823C86 /* locationManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = locationManager.swift; sourceTree = ""; }; + B1F8446A2BF1345500823C86 /* IAPManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IAPManager.swift; sourceTree = ""; }; + B1F8446C2BF1346D00823C86 /* WeatherManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WeatherManager.swift; sourceTree = ""; }; + B1F8446E2BF135B000823C86 /* SettingsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SettingsViewController.swift; sourceTree = ""; }; + B1F844702BF135EF00823C86 /* TabViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TabViewController.swift; sourceTree = ""; }; + B1F844722BF2A6A100823C86 /* CurrentWeatherView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CurrentWeatherView.swift; sourceTree = ""; }; + B1F844742BF2A6D500823C86 /* SettingsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SettingsView.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + B1F844472BF130B600823C86 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + B1F844412BF130B600823C86 = { + isa = PBXGroup; + children = ( + B1F8444C2BF130B600823C86 /* WeatherApp */, + B1F8444B2BF130B600823C86 /* Products */, + ); + sourceTree = ""; + }; + B1F8444B2BF130B600823C86 /* Products */ = { + isa = PBXGroup; + children = ( + B1F8444A2BF130B600823C86 /* WeatherApp.app */, + ); + name = Products; + sourceTree = ""; + }; + B1F8444C2BF130B600823C86 /* WeatherApp */ = { + isa = PBXGroup; + children = ( + B1F844672BF1342500823C86 /* Managers */, + B1F844662BF133A700823C86 /* Other */, + B1F844652BF133A000823C86 /* Controllers */, + B1F844642BF1339400823C86 /* ViewModels */, + B1F844632BF1338E00823C86 /* Models */, + B1F844622BF1338700823C86 /* Views */, + B1F8445B2BF130B700823C86 /* Info.plist */, + B1F844612BF131D100823C86 /* WeatherApp.entitlements */, + ); + path = WeatherApp; + sourceTree = ""; + }; + B1F844622BF1338700823C86 /* Views */ = { + isa = PBXGroup; + children = ( + B1F844722BF2A6A100823C86 /* CurrentWeatherView.swift */, + B1F844742BF2A6D500823C86 /* SettingsView.swift */, + ); + path = Views; + sourceTree = ""; + }; + B1F844632BF1338E00823C86 /* Models */ = { + isa = PBXGroup; + children = ( + ); + path = Models; + sourceTree = ""; + }; + B1F844642BF1339400823C86 /* ViewModels */ = { + isa = PBXGroup; + children = ( + ); + path = ViewModels; + sourceTree = ""; + }; + B1F844652BF133A000823C86 /* Controllers */ = { + isa = PBXGroup; + children = ( + B1F844512BF130B600823C86 /* WeatherViewController.swift */, + B1F8446E2BF135B000823C86 /* SettingsViewController.swift */, + B1F844702BF135EF00823C86 /* TabViewController.swift */, + ); + path = Controllers; + sourceTree = ""; + }; + B1F844662BF133A700823C86 /* Other */ = { + isa = PBXGroup; + children = ( + B1F844562BF130B700823C86 /* Assets.xcassets */, + B1F844582BF130B700823C86 /* LaunchScreen.storyboard */, + B1F8444D2BF130B600823C86 /* AppDelegate.swift */, + B1F8444F2BF130B600823C86 /* SceneDelegate.swift */, + ); + path = Other; + sourceTree = ""; + }; + B1F844672BF1342500823C86 /* Managers */ = { + isa = PBXGroup; + children = ( + B1F844682BF1343E00823C86 /* locationManager.swift */, + B1F8446A2BF1345500823C86 /* IAPManager.swift */, + B1F8446C2BF1346D00823C86 /* WeatherManager.swift */, + ); + path = Managers; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + B1F844492BF130B600823C86 /* WeatherApp */ = { + isa = PBXNativeTarget; + buildConfigurationList = B1F8445E2BF130B700823C86 /* Build configuration list for PBXNativeTarget "WeatherApp" */; + buildPhases = ( + B1F844462BF130B600823C86 /* Sources */, + B1F844472BF130B600823C86 /* Frameworks */, + B1F844482BF130B600823C86 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = WeatherApp; + productName = WeatherApp; + productReference = B1F8444A2BF130B600823C86 /* WeatherApp.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + B1F844422BF130B600823C86 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 1520; + LastUpgradeCheck = 1520; + TargetAttributes = { + B1F844492BF130B600823C86 = { + CreatedOnToolsVersion = 15.2; + }; + }; + }; + buildConfigurationList = B1F844452BF130B600823C86 /* Build configuration list for PBXProject "WeatherApp" */; + compatibilityVersion = "Xcode 14.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = B1F844412BF130B600823C86; + productRefGroup = B1F8444B2BF130B600823C86 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + B1F844492BF130B600823C86 /* WeatherApp */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + B1F844482BF130B600823C86 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + B1F8445A2BF130B700823C86 /* LaunchScreen.storyboard in Resources */, + B1F844572BF130B700823C86 /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + B1F844462BF130B600823C86 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + B1F844712BF135EF00823C86 /* TabViewController.swift in Sources */, + B1F8446D2BF1346D00823C86 /* WeatherManager.swift in Sources */, + B1F844692BF1343E00823C86 /* locationManager.swift in Sources */, + B1F844732BF2A6A100823C86 /* CurrentWeatherView.swift in Sources */, + B1F8446F2BF135B000823C86 /* SettingsViewController.swift in Sources */, + B1F844752BF2A6D500823C86 /* SettingsView.swift in Sources */, + B1F8446B2BF1345500823C86 /* IAPManager.swift in Sources */, + B1F844522BF130B600823C86 /* WeatherViewController.swift in Sources */, + B1F8444E2BF130B600823C86 /* AppDelegate.swift in Sources */, + B1F844502BF130B600823C86 /* SceneDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + B1F844582BF130B700823C86 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + B1F844592BF130B700823C86 /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + B1F8445C2BF130B700823C86 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + ENABLE_USER_SCRIPT_SANDBOXING = YES; + GCC_C_LANGUAGE_STANDARD = gnu17; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 17.2; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + B1F8445D2BF130B700823C86 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = YES; + GCC_C_LANGUAGE_STANDARD = gnu17; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 17.2; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + B1F8445F2BF130B700823C86 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_ENTITLEMENTS = WeatherApp/WeatherApp.entitlements; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = A8L5QZ969G; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = WeatherApp/Info.plist; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.thanky.WeatherApp; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + B1F844602BF130B700823C86 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_ENTITLEMENTS = WeatherApp/WeatherApp.entitlements; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = A8L5QZ969G; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = WeatherApp/Info.plist; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.thanky.WeatherApp; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + B1F844452BF130B600823C86 /* Build configuration list for PBXProject "WeatherApp" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + B1F8445C2BF130B700823C86 /* Debug */, + B1F8445D2BF130B700823C86 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + B1F8445E2BF130B700823C86 /* Build configuration list for PBXNativeTarget "WeatherApp" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + B1F8445F2BF130B700823C86 /* Debug */, + B1F844602BF130B700823C86 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = B1F844422BF130B600823C86 /* Project object */; +} diff --git a/week4_minchae/WeatherApp/WeatherApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/week4_minchae/WeatherApp/WeatherApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/week4_minchae/WeatherApp/WeatherApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/week4_minchae/WeatherApp/WeatherApp.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/week4_minchae/WeatherApp/WeatherApp.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/week4_minchae/WeatherApp/WeatherApp.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/week4_minchae/WeatherApp/WeatherApp.xcodeproj/xcshareddata/xcschemes/WeatherApp.xcscheme b/week4_minchae/WeatherApp/WeatherApp.xcodeproj/xcshareddata/xcschemes/WeatherApp.xcscheme new file mode 100644 index 0000000..6d4391a --- /dev/null +++ b/week4_minchae/WeatherApp/WeatherApp.xcodeproj/xcshareddata/xcschemes/WeatherApp.xcscheme @@ -0,0 +1,77 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/week4_minchae/WeatherApp/WeatherApp/Controllers/SettingsViewController.swift b/week4_minchae/WeatherApp/WeatherApp/Controllers/SettingsViewController.swift new file mode 100644 index 0000000..61e931f --- /dev/null +++ b/week4_minchae/WeatherApp/WeatherApp/Controllers/SettingsViewController.swift @@ -0,0 +1,26 @@ +// +// SettingsViewController.swift +// WeatherApp +// +// Created by 황민채 on 5/13/24. +// + +import UIKit + +class SettingsViewController: UIViewController { + + private let primaryView = SettingsView() + + override func viewDidLoad() { + super.viewDidLoad() + view.backgroundColor = .systemBackground + + view.addSubview(primaryView) + NSLayoutConstraint.activate([ + primaryView.topAnchor.constraint(equalTo: view.safeAreaLayoutGuide.topAnchor), + primaryView.leftAnchor.constraint(equalTo: view.safeAreaLayoutGuide.leftAnchor), + primaryView.rightAnchor.constraint(equalTo: view.safeAreaLayoutGuide.rightAnchor), + primaryView.bottomAnchor.constraint(equalTo: view.safeAreaLayoutGuide.bottomAnchor) + ]) + } +} diff --git a/week4_minchae/WeatherApp/WeatherApp/Controllers/TabViewController.swift b/week4_minchae/WeatherApp/WeatherApp/Controllers/TabViewController.swift new file mode 100644 index 0000000..219f868 --- /dev/null +++ b/week4_minchae/WeatherApp/WeatherApp/Controllers/TabViewController.swift @@ -0,0 +1,31 @@ +// +// TabViewController.swift +// WeatherApp +// +// Created by 황민채 on 5/13/24. +// + +import UIKit + +final class TabViewController: UITabBarController { + + override func viewDidLoad() { + super.viewDidLoad() + + let tab1 = WeatherViewController() + tab1.title = "Weather" + + let tab2 = SettingsViewController() + tab2.title = "Setting" + + let nav1 = UINavigationController(rootViewController: tab1) + let nav2 = UINavigationController(rootViewController: tab2) + + nav1.tabBarItem = UITabBarItem(title: "Weather", image: UIImage(named: "cloud.sun"), tag: 1) + nav2.tabBarItem = UITabBarItem(title: "Settings", image: UIImage(named: "gear"), tag: 2) + + setViewControllers([ + nav1, nav2 + ], animated: true) + } +} diff --git a/week4_minchae/WeatherApp/WeatherApp/Controllers/WeatherViewController.swift b/week4_minchae/WeatherApp/WeatherApp/Controllers/WeatherViewController.swift new file mode 100644 index 0000000..c3a028a --- /dev/null +++ b/week4_minchae/WeatherApp/WeatherApp/Controllers/WeatherViewController.swift @@ -0,0 +1,39 @@ +// +// WeatherViewController.swift +// WeatherApp +// +// Created by 황민채 on 5/13/24. +// + +import UIKit + +class WeatherViewController: UIViewController { + + private let primaryView = CurrentWeatherView() + + override func viewDidLoad() { + super.viewDidLoad() + setUpView() + getLocation() + } + private func getLocation() { + LocationManager.shared.getCurrentLocation { location in + print(String(describing: location)) + + WeatherManager.shared.getWeather(for: location) + } + } + + private func setUpView() { + view.backgroundColor = .systemBackground + + view.addSubview(primaryView) + NSLayoutConstraint.activate([ + primaryView.topAnchor.constraint(equalTo: view.safeAreaLayoutGuide.topAnchor), + primaryView.leftAnchor.constraint(equalTo: view.safeAreaLayoutGuide.leftAnchor), + primaryView.rightAnchor.constraint(equalTo: view.safeAreaLayoutGuide.rightAnchor), + primaryView.bottomAnchor.constraint(equalTo: view.safeAreaLayoutGuide.bottomAnchor) + ]) + } +} + diff --git a/week4_minchae/WeatherApp/WeatherApp/Info.plist b/week4_minchae/WeatherApp/WeatherApp/Info.plist new file mode 100644 index 0000000..08adf19 --- /dev/null +++ b/week4_minchae/WeatherApp/WeatherApp/Info.plist @@ -0,0 +1,25 @@ + + + + + UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + UISceneConfigurations + + UIWindowSceneSessionRoleApplication + + + UISceneConfigurationName + Default Configuration + UISceneDelegateClassName + $(PRODUCT_MODULE_NAME).SceneDelegate + + + + + NSLocationWhenInUseUsageDescription + Please allow location access to see your local weather data + + diff --git a/week4_minchae/WeatherApp/WeatherApp/Managers/IAPManager.swift b/week4_minchae/WeatherApp/WeatherApp/Managers/IAPManager.swift new file mode 100644 index 0000000..9e7093a --- /dev/null +++ b/week4_minchae/WeatherApp/WeatherApp/Managers/IAPManager.swift @@ -0,0 +1,15 @@ +// +// IAPManager.swift +// WeatherApp +// +// Created by 황민채 on 5/13/24. +// + +// TODO: Bring in RevenueCat +import Foundation + +final class IAPManager { + static let shared = IAPManager() + + private init() { } +} diff --git a/week4_minchae/WeatherApp/WeatherApp/Managers/WeatherManager.swift b/week4_minchae/WeatherApp/WeatherApp/Managers/WeatherManager.swift new file mode 100644 index 0000000..55cc67b --- /dev/null +++ b/week4_minchae/WeatherApp/WeatherApp/Managers/WeatherManager.swift @@ -0,0 +1,21 @@ +// +// WeatherManager.swift +// WeatherApp +// +// Created by 황민채 on 5/13/24. +// + +import CoreLocation +import WeatherKit +import Foundation + + +final class WeatherManager { + static let shared = WeatherManager() + + private init() { } + + public func getWeather(for location: CLLocation) { + + } +} diff --git a/week4_minchae/WeatherApp/WeatherApp/Managers/locationManager.swift b/week4_minchae/WeatherApp/WeatherApp/Managers/locationManager.swift new file mode 100644 index 0000000..6f774cb --- /dev/null +++ b/week4_minchae/WeatherApp/WeatherApp/Managers/locationManager.swift @@ -0,0 +1,43 @@ +// +// locationManager.swift +// WeatherApp +// +// Created by 황민채 on 5/13/24. +// + +import CoreLocation +import Foundation + +final class LocationManager: NSObject, CLLocationManagerDelegate { + + private let manager = CLLocationManager() + + static let shared = LocationManager() + + private var locationFetchCompletion: ((CLLocation) -> Void)? + + private var location: CLLocation? { + didSet { + guard let location else { + return + } + locationFetchCompletion?(location) + } + } + + public func getCurrentLocation(completion: @escaping (CLLocation) -> Void) { + self.locationFetchCompletion = completion + + manager.requestWhenInUseAuthorization() + manager.delegate = self + manager.startUpdatingLocation() + } + + func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) { + guard let location = locations.first else { + return + } + self.location = location + manager.stopUpdatingLocation() + } +} diff --git a/week4_minchae/WeatherApp/WeatherApp/Other/AppDelegate.swift b/week4_minchae/WeatherApp/WeatherApp/Other/AppDelegate.swift new file mode 100644 index 0000000..1c32d80 --- /dev/null +++ b/week4_minchae/WeatherApp/WeatherApp/Other/AppDelegate.swift @@ -0,0 +1,36 @@ +// +// AppDelegate.swift +// WeatherApp +// +// Created by 황민채 on 5/13/24. +// + +import UIKit + +@main +class AppDelegate: UIResponder, UIApplicationDelegate { + + + + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { + // Override point for customization after application launch. + 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) { + // 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. + } + + +} + diff --git a/week4_minchae/WeatherApp/WeatherApp/Other/Assets.xcassets/AccentColor.colorset/Contents.json b/week4_minchae/WeatherApp/WeatherApp/Other/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 0000000..eb87897 --- /dev/null +++ b/week4_minchae/WeatherApp/WeatherApp/Other/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/week4_minchae/WeatherApp/WeatherApp/Other/Assets.xcassets/AppIcon.appiconset/Contents.json b/week4_minchae/WeatherApp/WeatherApp/Other/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..13613e3 --- /dev/null +++ b/week4_minchae/WeatherApp/WeatherApp/Other/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,13 @@ +{ + "images" : [ + { + "idiom" : "universal", + "platform" : "ios", + "size" : "1024x1024" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/week4_minchae/WeatherApp/WeatherApp/Other/Assets.xcassets/Contents.json b/week4_minchae/WeatherApp/WeatherApp/Other/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/week4_minchae/WeatherApp/WeatherApp/Other/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/week4_minchae/WeatherApp/WeatherApp/Other/Base.lproj/LaunchScreen.storyboard b/week4_minchae/WeatherApp/WeatherApp/Other/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..865e932 --- /dev/null +++ b/week4_minchae/WeatherApp/WeatherApp/Other/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/week4_minchae/WeatherApp/WeatherApp/Other/SceneDelegate.swift b/week4_minchae/WeatherApp/WeatherApp/Other/SceneDelegate.swift new file mode 100644 index 0000000..407984c --- /dev/null +++ b/week4_minchae/WeatherApp/WeatherApp/Other/SceneDelegate.swift @@ -0,0 +1,58 @@ +// +// SceneDelegate.swift +// WeatherApp +// +// Created by 황민채 on 5/13/24. +// + +import UIKit + +class SceneDelegate: UIResponder, UIWindowSceneDelegate { + + var window: UIWindow? + + + func scene(_ scene: UIScene, + willConnectTo session: UISceneSession, + options connectionOptions: UIScene.ConnectionOptions + ) { + guard let windowScene = (scene as? UIWindowScene) else { return } + + let viewController = TabViewController() + let window = UIWindow(windowScene: windowScene) + window.rootViewController = viewController + window.makeKeyAndVisible() + self.window = window + } + + func sceneDidDisconnect(_ scene: UIScene) { + // Called as the scene is being released by the system. + // This occurs shortly after the scene enters the background, or when its session is discarded. + // Release any resources associated with this scene that can be re-created the next time the scene connects. + // The scene may re-connect later, as its session was not necessarily discarded (see `application:didDiscardSceneSessions` instead). + } + + func sceneDidBecomeActive(_ scene: UIScene) { + // Called when the scene has moved from an inactive state to an active state. + // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. + } + + func sceneWillResignActive(_ scene: UIScene) { + // Called when the scene will move from an active state to an inactive state. + // This may occur due to temporary interruptions (ex. an incoming phone call). + } + + func sceneWillEnterForeground(_ scene: UIScene) { + // Called as the scene transitions from the background to the foreground. + // Use this method to undo the changes made on entering the background. + } + + func sceneDidEnterBackground(_ scene: UIScene) { + // Called as the scene transitions from the foreground to the background. + // Use this method to save data, release shared resources, and store enough scene-specific state information + // to restore the scene back to its current state. + } + + +} + diff --git a/week4_minchae/WeatherApp/WeatherApp/Views/CurrentWeatherView.swift b/week4_minchae/WeatherApp/WeatherApp/Views/CurrentWeatherView.swift new file mode 100644 index 0000000..0ad30a4 --- /dev/null +++ b/week4_minchae/WeatherApp/WeatherApp/Views/CurrentWeatherView.swift @@ -0,0 +1,21 @@ +// +// CurrentWeatherView.swift +// WeatherApp +// +// Created by 황민채 on 5/14/24. +// + +import UIKit + +final class CurrentWeatherView: UIView { + + override init(frame: CGRect) { + super.init(frame: frame) + backgroundColor = .gray + translatesAutoresizingMaskIntoConstraints = false + } + + required init?(coder: NSCoder) { + fatalError() + } +} diff --git a/week4_minchae/WeatherApp/WeatherApp/Views/SettingsView.swift b/week4_minchae/WeatherApp/WeatherApp/Views/SettingsView.swift new file mode 100644 index 0000000..0a5aba9 --- /dev/null +++ b/week4_minchae/WeatherApp/WeatherApp/Views/SettingsView.swift @@ -0,0 +1,21 @@ +// +// SettingsView.swift +// WeatherApp +// +// Created by 황민채 on 5/14/24. +// + +import UIKit + +class SettingsView: UIView { + + override init(frame: CGRect) { + super.init(frame: frame) + backgroundColor = .red + translatesAutoresizingMaskIntoConstraints = false + } + + required init?(coder: NSCoder) { + fatalError() + } +} diff --git a/week4_minchae/WeatherApp/WeatherApp/WeatherApp.entitlements b/week4_minchae/WeatherApp/WeatherApp/WeatherApp.entitlements new file mode 100644 index 0000000..ec84c03 --- /dev/null +++ b/week4_minchae/WeatherApp/WeatherApp/WeatherApp.entitlements @@ -0,0 +1,8 @@ + + + + + com.apple.developer.weatherkit + + + diff --git a/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard.xcodeproj/project.pbxproj b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard.xcodeproj/project.pbxproj new file mode 100644 index 0000000..38403bb --- /dev/null +++ b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard.xcodeproj/project.pbxproj @@ -0,0 +1,372 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 56; + objects = { + +/* Begin PBXBuildFile section */ + B1F844A32BF3978800823C86 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = B1F844A22BF3978800823C86 /* AppDelegate.swift */; }; + B1F844A52BF3978800823C86 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = B1F844A42BF3978800823C86 /* SceneDelegate.swift */; }; + B1F844A72BF3978800823C86 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = B1F844A62BF3978800823C86 /* ViewController.swift */; }; + B1F844AA2BF3978800823C86 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = B1F844A82BF3978800823C86 /* Main.storyboard */; }; + B1F844AC2BF3978A00823C86 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = B1F844AB2BF3978A00823C86 /* Assets.xcassets */; }; + B1F844AF2BF3978A00823C86 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = B1F844AD2BF3978A00823C86 /* LaunchScreen.storyboard */; }; + B1F844B72BF3A60700823C86 /* Extension+UIView.swift in Sources */ = {isa = PBXBuildFile; fileRef = B1F844B62BF3A60700823C86 /* Extension+UIView.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + B1F8449F2BF3978800823C86 /* WeatherApp_Storyboard.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = WeatherApp_Storyboard.app; sourceTree = BUILT_PRODUCTS_DIR; }; + B1F844A22BF3978800823C86 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + B1F844A42BF3978800823C86 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; + B1F844A62BF3978800823C86 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + B1F844A92BF3978800823C86 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + B1F844AB2BF3978A00823C86 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + B1F844AE2BF3978A00823C86 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + B1F844B02BF3978A00823C86 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + B1F844B62BF3A60700823C86 /* Extension+UIView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Extension+UIView.swift"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + B1F8449C2BF3978800823C86 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + B1F844962BF3978800823C86 = { + isa = PBXGroup; + children = ( + B1F844A12BF3978800823C86 /* WeatherApp_Storyboard */, + B1F844A02BF3978800823C86 /* Products */, + ); + sourceTree = ""; + }; + B1F844A02BF3978800823C86 /* Products */ = { + isa = PBXGroup; + children = ( + B1F8449F2BF3978800823C86 /* WeatherApp_Storyboard.app */, + ); + name = Products; + sourceTree = ""; + }; + B1F844A12BF3978800823C86 /* WeatherApp_Storyboard */ = { + isa = PBXGroup; + children = ( + B1F844A22BF3978800823C86 /* AppDelegate.swift */, + B1F844A42BF3978800823C86 /* SceneDelegate.swift */, + B1F844A62BF3978800823C86 /* ViewController.swift */, + B1F844B62BF3A60700823C86 /* Extension+UIView.swift */, + B1F844A82BF3978800823C86 /* Main.storyboard */, + B1F844AB2BF3978A00823C86 /* Assets.xcassets */, + B1F844AD2BF3978A00823C86 /* LaunchScreen.storyboard */, + B1F844B02BF3978A00823C86 /* Info.plist */, + ); + path = WeatherApp_Storyboard; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + B1F8449E2BF3978800823C86 /* WeatherApp_Storyboard */ = { + isa = PBXNativeTarget; + buildConfigurationList = B1F844B32BF3978A00823C86 /* Build configuration list for PBXNativeTarget "WeatherApp_Storyboard" */; + buildPhases = ( + B1F8449B2BF3978800823C86 /* Sources */, + B1F8449C2BF3978800823C86 /* Frameworks */, + B1F8449D2BF3978800823C86 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = WeatherApp_Storyboard; + productName = WeatherApp_Storyboard; + productReference = B1F8449F2BF3978800823C86 /* WeatherApp_Storyboard.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + B1F844972BF3978800823C86 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 1520; + LastUpgradeCheck = 1520; + TargetAttributes = { + B1F8449E2BF3978800823C86 = { + CreatedOnToolsVersion = 15.2; + }; + }; + }; + buildConfigurationList = B1F8449A2BF3978800823C86 /* Build configuration list for PBXProject "WeatherApp_Storyboard" */; + compatibilityVersion = "Xcode 14.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = B1F844962BF3978800823C86; + productRefGroup = B1F844A02BF3978800823C86 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + B1F8449E2BF3978800823C86 /* WeatherApp_Storyboard */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + B1F8449D2BF3978800823C86 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + B1F844AF2BF3978A00823C86 /* LaunchScreen.storyboard in Resources */, + B1F844AC2BF3978A00823C86 /* Assets.xcassets in Resources */, + B1F844AA2BF3978800823C86 /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + B1F8449B2BF3978800823C86 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + B1F844A72BF3978800823C86 /* ViewController.swift in Sources */, + B1F844A32BF3978800823C86 /* AppDelegate.swift in Sources */, + B1F844B72BF3A60700823C86 /* Extension+UIView.swift in Sources */, + B1F844A52BF3978800823C86 /* SceneDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + B1F844A82BF3978800823C86 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + B1F844A92BF3978800823C86 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + B1F844AD2BF3978A00823C86 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + B1F844AE2BF3978A00823C86 /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + B1F844B12BF3978A00823C86 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + ENABLE_USER_SCRIPT_SANDBOXING = YES; + GCC_C_LANGUAGE_STANDARD = gnu17; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 17.2; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + B1F844B22BF3978A00823C86 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = YES; + GCC_C_LANGUAGE_STANDARD = gnu17; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 17.2; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + B1F844B42BF3978A00823C86 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = A8L5QZ969G; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = WeatherApp_Storyboard/Info.plist; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; + INFOPLIST_KEY_UIMainStoryboardFile = Main; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = "com.thanky.WeatherApp-Storyboard"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + B1F844B52BF3978A00823C86 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = A8L5QZ969G; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = WeatherApp_Storyboard/Info.plist; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; + INFOPLIST_KEY_UIMainStoryboardFile = Main; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = "com.thanky.WeatherApp-Storyboard"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + B1F8449A2BF3978800823C86 /* Build configuration list for PBXProject "WeatherApp_Storyboard" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + B1F844B12BF3978A00823C86 /* Debug */, + B1F844B22BF3978A00823C86 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + B1F844B32BF3978A00823C86 /* Build configuration list for PBXNativeTarget "WeatherApp_Storyboard" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + B1F844B42BF3978A00823C86 /* Debug */, + B1F844B52BF3978A00823C86 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = B1F844972BF3978800823C86 /* Project object */; +} diff --git a/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/AppDelegate.swift b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/AppDelegate.swift new file mode 100644 index 0000000..470ccec --- /dev/null +++ b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/AppDelegate.swift @@ -0,0 +1,36 @@ +// +// AppDelegate.swift +// WeatherApp_Storyboard +// +// Created by 황민채 on 5/14/24. +// + +import UIKit + +@main +class AppDelegate: UIResponder, UIApplicationDelegate { + + + + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { + // Override point for customization after application launch. + 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) { + // 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. + } + + +} + diff --git a/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Assets.xcassets/AccentColor.colorset/Contents.json b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 0000000..eb87897 --- /dev/null +++ b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Assets.xcassets/AppIcon.appiconset/Contents.json b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..13613e3 --- /dev/null +++ b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,13 @@ +{ + "images" : [ + { + "idiom" : "universal", + "platform" : "ios", + "size" : "1024x1024" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Assets.xcassets/Contents.json b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Assets.xcassets/cloudSun.imageset/Contents.json b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Assets.xcassets/cloudSun.imageset/Contents.json new file mode 100644 index 0000000..637ee05 --- /dev/null +++ b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Assets.xcassets/cloudSun.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "image-removebg-preview.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Assets.xcassets/cloudSun.imageset/image-removebg-preview.png b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Assets.xcassets/cloudSun.imageset/image-removebg-preview.png new file mode 100644 index 0000000..ffdb056 Binary files /dev/null and b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Assets.xcassets/cloudSun.imageset/image-removebg-preview.png differ diff --git a/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Assets.xcassets/rainThunder.imageset/Contents.json b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Assets.xcassets/rainThunder.imageset/Contents.json new file mode 100644 index 0000000..47b1960 --- /dev/null +++ b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Assets.xcassets/rainThunder.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "image-removebg-preview (2).png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Assets.xcassets/rainThunder.imageset/image-removebg-preview (2).png b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Assets.xcassets/rainThunder.imageset/image-removebg-preview (2).png new file mode 100644 index 0000000..9e96b3f Binary files /dev/null and b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Assets.xcassets/rainThunder.imageset/image-removebg-preview (2).png differ diff --git a/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Assets.xcassets/rainn.imageset/Contents.json b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Assets.xcassets/rainn.imageset/Contents.json new file mode 100644 index 0000000..2f15fec --- /dev/null +++ b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Assets.xcassets/rainn.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "image-removebg-preview (3).png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Assets.xcassets/rainn.imageset/image-removebg-preview (3).png b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Assets.xcassets/rainn.imageset/image-removebg-preview (3).png new file mode 100644 index 0000000..c066308 Binary files /dev/null and b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Assets.xcassets/rainn.imageset/image-removebg-preview (3).png differ diff --git a/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Assets.xcassets/snowRain.imageset/Contents.json b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Assets.xcassets/snowRain.imageset/Contents.json new file mode 100644 index 0000000..45628e7 --- /dev/null +++ b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Assets.xcassets/snowRain.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "image-removebg-preview (4).png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Assets.xcassets/snowRain.imageset/image-removebg-preview (4).png b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Assets.xcassets/snowRain.imageset/image-removebg-preview (4).png new file mode 100644 index 0000000..ba9df4e Binary files /dev/null and b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Assets.xcassets/snowRain.imageset/image-removebg-preview (4).png differ diff --git a/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Assets.xcassets/sun.imageset/Contents.json b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Assets.xcassets/sun.imageset/Contents.json new file mode 100644 index 0000000..30d2838 --- /dev/null +++ b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Assets.xcassets/sun.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "image-removebg-preview (1).png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Assets.xcassets/sun.imageset/image-removebg-preview (1).png b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Assets.xcassets/sun.imageset/image-removebg-preview (1).png new file mode 100644 index 0000000..de2bd19 Binary files /dev/null and b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Assets.xcassets/sun.imageset/image-removebg-preview (1).png differ diff --git a/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Base.lproj/LaunchScreen.storyboard b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..865e932 --- /dev/null +++ b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Base.lproj/Main.storyboard b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Base.lproj/Main.storyboard new file mode 100644 index 0000000..0384b11 --- /dev/null +++ b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Base.lproj/Main.storyboard @@ -0,0 +1,810 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Extension+UIView.swift b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Extension+UIView.swift new file mode 100644 index 0000000..8e4b00e --- /dev/null +++ b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Extension+UIView.swift @@ -0,0 +1,41 @@ +// +// Extension+UIView.swift +// WeatherApp_Storyboard +// +// Created by 황민채 on 5/14/24. +// + +import UIKit + +extension UIView { + + @IBInspectable var borderWidth: CGFloat { + set { + layer.borderWidth = newValue + } + get { + return layer.borderWidth + } + } + + @IBInspectable var cornerRadius: CGFloat { + set { + layer.cornerRadius = newValue + } + get { + return layer.cornerRadius + } + } + + @IBInspectable var borderColor: UIColor? { + set { + guard let uiColor = newValue else { return } + layer.borderColor = uiColor.cgColor + } + get { + guard let color = layer.borderColor else { return nil } + return UIColor(cgColor: color) + } + } + +} diff --git a/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Info.plist b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Info.plist new file mode 100644 index 0000000..dd3c9af --- /dev/null +++ b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/Info.plist @@ -0,0 +1,25 @@ + + + + + UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + UISceneConfigurations + + UIWindowSceneSessionRoleApplication + + + UISceneConfigurationName + Default Configuration + UISceneDelegateClassName + $(PRODUCT_MODULE_NAME).SceneDelegate + UISceneStoryboardFile + Main + + + + + + diff --git a/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/SceneDelegate.swift b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/SceneDelegate.swift new file mode 100644 index 0000000..8ae8534 --- /dev/null +++ b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/SceneDelegate.swift @@ -0,0 +1,52 @@ +// +// SceneDelegate.swift +// WeatherApp_Storyboard +// +// Created by 황민채 on 5/14/24. +// + +import UIKit + +class SceneDelegate: UIResponder, UIWindowSceneDelegate { + + var window: UIWindow? + + + func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { + // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. + // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. + // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). + guard let _ = (scene as? UIWindowScene) else { return } + } + + func sceneDidDisconnect(_ scene: UIScene) { + // Called as the scene is being released by the system. + // This occurs shortly after the scene enters the background, or when its session is discarded. + // Release any resources associated with this scene that can be re-created the next time the scene connects. + // The scene may re-connect later, as its session was not necessarily discarded (see `application:didDiscardSceneSessions` instead). + } + + func sceneDidBecomeActive(_ scene: UIScene) { + // Called when the scene has moved from an inactive state to an active state. + // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. + } + + func sceneWillResignActive(_ scene: UIScene) { + // Called when the scene will move from an active state to an inactive state. + // This may occur due to temporary interruptions (ex. an incoming phone call). + } + + func sceneWillEnterForeground(_ scene: UIScene) { + // Called as the scene transitions from the background to the foreground. + // Use this method to undo the changes made on entering the background. + } + + func sceneDidEnterBackground(_ scene: UIScene) { + // Called as the scene transitions from the foreground to the background. + // Use this method to save data, release shared resources, and store enough scene-specific state information + // to restore the scene back to its current state. + } + + +} + diff --git a/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/ViewController.swift b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/ViewController.swift new file mode 100644 index 0000000..b81c736 --- /dev/null +++ b/week4_minchae/WeatherApp_Storyboard/WeatherApp_Storyboard/ViewController.swift @@ -0,0 +1,19 @@ +// +// ViewController.swift +// WeatherApp_Storyboard +// +// Created by 황민채 on 5/14/24. +// + +import UIKit + +class ViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + // Do any additional setup after loading the view. + } + + +} +