diff --git a/FE/MoodMeterDiary/MoodMeterDiary.xcodeproj/project.pbxproj b/FE/MoodMeterDiary/MoodMeterDiary.xcodeproj/project.pbxproj new file mode 100644 index 0000000..f5d9d51 --- /dev/null +++ b/FE/MoodMeterDiary/MoodMeterDiary.xcodeproj/project.pbxproj @@ -0,0 +1,410 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 56; + objects = { + +/* Begin PBXBuildFile section */ + 92262E122B57F97F00817DB2 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 92262E112B57F97F00817DB2 /* AppDelegate.swift */; }; + 92262E142B57F97F00817DB2 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 92262E132B57F97F00817DB2 /* SceneDelegate.swift */; }; + 92262E162B57F97F00817DB2 /* MainViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 92262E152B57F97F00817DB2 /* MainViewController.swift */; }; + 92262E1B2B57F98000817DB2 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 92262E1A2B57F98000817DB2 /* Assets.xcassets */; }; + 92262E1E2B57F98000817DB2 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 92262E1C2B57F98000817DB2 /* LaunchScreen.storyboard */; }; + 929886182B5FEC4B009C5B16 /* TabBarViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 929886172B5FEC4B009C5B16 /* TabBarViewController.swift */; }; + 9298861A2B5FEFC3009C5B16 /* ProfileViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 929886192B5FEFC3009C5B16 /* ProfileViewController.swift */; }; + 9298861C2B5FF0E7009C5B16 /* DiaryViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9298861B2B5FF0E7009C5B16 /* DiaryViewController.swift */; }; + 929886212B62B5F6009C5B16 /* Member.swift in Sources */ = {isa = PBXBuildFile; fileRef = 929886202B62B5F6009C5B16 /* Member.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 92262E0E2B57F97F00817DB2 /* MoodMeterDiary.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MoodMeterDiary.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 92262E112B57F97F00817DB2 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 92262E132B57F97F00817DB2 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; + 92262E152B57F97F00817DB2 /* MainViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainViewController.swift; sourceTree = ""; }; + 92262E1A2B57F98000817DB2 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 92262E1D2B57F98000817DB2 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 92262E1F2B57F98000817DB2 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 929886172B5FEC4B009C5B16 /* TabBarViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TabBarViewController.swift; sourceTree = ""; }; + 929886192B5FEFC3009C5B16 /* ProfileViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ProfileViewController.swift; sourceTree = ""; }; + 9298861B2B5FF0E7009C5B16 /* DiaryViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DiaryViewController.swift; sourceTree = ""; }; + 929886202B62B5F6009C5B16 /* Member.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Member.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 92262E0B2B57F97F00817DB2 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 92262E052B57F97F00817DB2 = { + isa = PBXGroup; + children = ( + 92262E102B57F97F00817DB2 /* MoodMeterDiary */, + 92262E0F2B57F97F00817DB2 /* Products */, + ); + sourceTree = ""; + }; + 92262E0F2B57F97F00817DB2 /* Products */ = { + isa = PBXGroup; + children = ( + 92262E0E2B57F97F00817DB2 /* MoodMeterDiary.app */, + ); + name = Products; + sourceTree = ""; + }; + 92262E102B57F97F00817DB2 /* MoodMeterDiary */ = { + isa = PBXGroup; + children = ( + 92262E292B57FBF800817DB2 /* Resource */, + 92262E282B57FB7C00817DB2 /* App */, + 92262E272B57FB4500817DB2 /* Controller */, + 92262E262B57FB4000817DB2 /* View */, + 92262E252B57FB3900817DB2 /* Model */, + 92262E1F2B57F98000817DB2 /* Info.plist */, + ); + path = MoodMeterDiary; + sourceTree = ""; + }; + 92262E252B57FB3900817DB2 /* Model */ = { + isa = PBXGroup; + children = ( + 929886202B62B5F6009C5B16 /* Member.swift */, + ); + path = Model; + sourceTree = ""; + }; + 92262E262B57FB4000817DB2 /* View */ = { + isa = PBXGroup; + children = ( + 92262E1C2B57F98000817DB2 /* LaunchScreen.storyboard */, + ); + path = View; + sourceTree = ""; + }; + 92262E272B57FB4500817DB2 /* Controller */ = { + isa = PBXGroup; + children = ( + 929886172B5FEC4B009C5B16 /* TabBarViewController.swift */, + 92262E152B57F97F00817DB2 /* MainViewController.swift */, + 9298861B2B5FF0E7009C5B16 /* DiaryViewController.swift */, + 929886192B5FEFC3009C5B16 /* ProfileViewController.swift */, + ); + path = Controller; + sourceTree = ""; + }; + 92262E282B57FB7C00817DB2 /* App */ = { + isa = PBXGroup; + children = ( + 92262E112B57F97F00817DB2 /* AppDelegate.swift */, + 92262E132B57F97F00817DB2 /* SceneDelegate.swift */, + ); + path = App; + sourceTree = ""; + }; + 92262E292B57FBF800817DB2 /* Resource */ = { + isa = PBXGroup; + children = ( + 92262E1A2B57F98000817DB2 /* Assets.xcassets */, + ); + path = Resource; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 92262E0D2B57F97F00817DB2 /* MoodMeterDiary */ = { + isa = PBXNativeTarget; + buildConfigurationList = 92262E222B57F98000817DB2 /* Build configuration list for PBXNativeTarget "MoodMeterDiary" */; + buildPhases = ( + 92262E0A2B57F97F00817DB2 /* Sources */, + 92262E0B2B57F97F00817DB2 /* Frameworks */, + 92262E0C2B57F97F00817DB2 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = MoodMeterDiary; + productName = MoodMeterDiary; + productReference = 92262E0E2B57F97F00817DB2 /* MoodMeterDiary.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 92262E062B57F97F00817DB2 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 1500; + LastUpgradeCheck = 1500; + TargetAttributes = { + 92262E0D2B57F97F00817DB2 = { + CreatedOnToolsVersion = 15.0; + }; + }; + }; + buildConfigurationList = 92262E092B57F97F00817DB2 /* Build configuration list for PBXProject "MoodMeterDiary" */; + compatibilityVersion = "Xcode 14.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 92262E052B57F97F00817DB2; + productRefGroup = 92262E0F2B57F97F00817DB2 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 92262E0D2B57F97F00817DB2 /* MoodMeterDiary */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 92262E0C2B57F97F00817DB2 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 92262E1E2B57F98000817DB2 /* LaunchScreen.storyboard in Resources */, + 92262E1B2B57F98000817DB2 /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 92262E0A2B57F97F00817DB2 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 92262E162B57F97F00817DB2 /* MainViewController.swift in Sources */, + 92262E122B57F97F00817DB2 /* AppDelegate.swift in Sources */, + 9298861A2B5FEFC3009C5B16 /* ProfileViewController.swift in Sources */, + 929886182B5FEC4B009C5B16 /* TabBarViewController.swift in Sources */, + 9298861C2B5FF0E7009C5B16 /* DiaryViewController.swift in Sources */, + 929886212B62B5F6009C5B16 /* Member.swift in Sources */, + 92262E142B57F97F00817DB2 /* SceneDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 92262E1C2B57F98000817DB2 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 92262E1D2B57F98000817DB2 /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 92262E202B57F98000817DB2 /* 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.0; + 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; + }; + 92262E212B57F98000817DB2 /* 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.0; + 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; + }; + 92262E232B57F98000817DB2 /* 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 = BMG3X5CM6G; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = MoodMeterDiary/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 = kr.traum.marchen.MoodMeterDiary; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 92262E242B57F98000817DB2 /* 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 = BMG3X5CM6G; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = MoodMeterDiary/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 = kr.traum.marchen.MoodMeterDiary; + 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 */ + 92262E092B57F97F00817DB2 /* Build configuration list for PBXProject "MoodMeterDiary" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 92262E202B57F98000817DB2 /* Debug */, + 92262E212B57F98000817DB2 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 92262E222B57F98000817DB2 /* Build configuration list for PBXNativeTarget "MoodMeterDiary" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 92262E232B57F98000817DB2 /* Debug */, + 92262E242B57F98000817DB2 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 92262E062B57F97F00817DB2 /* Project object */; +} diff --git a/FE/MoodMeterDiary/MoodMeterDiary.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/FE/MoodMeterDiary/MoodMeterDiary.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/FE/MoodMeterDiary/MoodMeterDiary.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/FE/MoodMeterDiary/MoodMeterDiary.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/FE/MoodMeterDiary/MoodMeterDiary.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/FE/MoodMeterDiary/MoodMeterDiary.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/FE/MoodMeterDiary/MoodMeterDiary/App/AppDelegate.swift b/FE/MoodMeterDiary/MoodMeterDiary/App/AppDelegate.swift new file mode 100644 index 0000000..a3cfff6 --- /dev/null +++ b/FE/MoodMeterDiary/MoodMeterDiary/App/AppDelegate.swift @@ -0,0 +1,36 @@ +// +// AppDelegate.swift +// MoodMeterDiary +// +// Created by mint on 1/17/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/FE/MoodMeterDiary/MoodMeterDiary/App/SceneDelegate.swift b/FE/MoodMeterDiary/MoodMeterDiary/App/SceneDelegate.swift new file mode 100644 index 0000000..fa562b9 --- /dev/null +++ b/FE/MoodMeterDiary/MoodMeterDiary/App/SceneDelegate.swift @@ -0,0 +1,27 @@ +// +// SceneDelegate.swift +// MoodMeterDiary +// +// Created by mint on 1/17/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 tabBarController = TabBarViewController() + + window = UIWindow(windowScene: windowScene) + window?.rootViewController = tabBarController + window?.makeKeyAndVisible() + } +} + diff --git a/FE/MoodMeterDiary/MoodMeterDiary/Controller/DiaryViewController.swift b/FE/MoodMeterDiary/MoodMeterDiary/Controller/DiaryViewController.swift new file mode 100644 index 0000000..bbb873b --- /dev/null +++ b/FE/MoodMeterDiary/MoodMeterDiary/Controller/DiaryViewController.swift @@ -0,0 +1,154 @@ +// +// DiaryViewController.swift +// MoodMeterDiary +// +// Created by minsong kim on 1/23/24. +// + +import UIKit + +class DiaryViewController: UIViewController { + let happyLabel: UILabel = { + let label = UILabel() + label.font = .preferredFont(forTextStyle: .title3) + label.text = "HAPPINESS" + + return label + }() + + let happyDescriptionLabel: UILabel = { + let label = UILabel() + label.font = .preferredFont(forTextStyle: .body) + label.text = """ + 오늘 당신이 느낀 행복감의 정도는 어디인가요? + 자주, 많이 기뻤나요? + 하루의 삶이 만족스러웠나요? + 아니면 생각이 많고, 마음이 무거웠나요? + """ + label.numberOfLines = 0 + label.textAlignment = .center + + return label + }() + + let energyLabel: UILabel = { + let label = UILabel() + label.font = .preferredFont(forTextStyle: .title3) + label.text = "ENERGY" + + return label + }() + + let energyDescriptionLabel: UILabel = { + let label = UILabel() + label.font = .preferredFont(forTextStyle: .body) + label.text = """ + 오늘 당신의 에너지는 얼마만큼이었나요? + 하루 종일 많은 것들을 할 힘이 남아돌았나요? + 뛰어다니진 않아도 가벼운 발걸음이었나요? + 아니면 기운이 없고 아무것도 하기 싫었나요? + """ + label.numberOfLines = 0 + label.textAlignment = .center + + return label + }() + + let happySlider: UISlider = { + let slider = UISlider() + slider.minimumValue = 0 + slider.maximumValue = 10 + slider.value = 5 + slider.maximumValueImage = UIImage(systemName: "hand.thumbsup.fill") + slider.minimumValueImage = UIImage(systemName: "hand.thumbsdown.fill") + slider.translatesAutoresizingMaskIntoConstraints = false + + return slider + }() + + let energySlider: UISlider = { + let slider = UISlider() + slider.minimumValue = 0 + slider.maximumValue = 10 + slider.value = 5 + slider.maximumValueImage = UIImage(systemName: "sun.max.fill") + slider.minimumValueImage = UIImage(systemName: "cloud.drizzle.fill") + slider.translatesAutoresizingMaskIntoConstraints = false + + return slider + }() + + let submitButton: UIButton = { + let button = UIButton() + button.setTitle("제출하기", for: .normal) + button.backgroundColor = .gray + + return button + }() + + let happyStackView: UIStackView = { + let stackView = UIStackView() + stackView.axis = .vertical + stackView.alignment = .center + stackView.spacing = 8 + + return stackView + }() + + let energyStackView: UIStackView = { + let stackView = UIStackView() + stackView.axis = .vertical + stackView.alignment = .center + stackView.spacing = 8 + + return stackView + }() + + let stackView: UIStackView = { + let stackView = UIStackView() + stackView.translatesAutoresizingMaskIntoConstraints = false + stackView.axis = .vertical + stackView.distribution = .equalSpacing + + return stackView + }() + + override func viewDidLoad() { + super.viewDidLoad() + view.backgroundColor = .systemBackground + view.addSubview(stackView) + + configureStackView() + configureSlider() +// configureLabel() + } + + func configureStackView() { + happyStackView.addArrangedSubview(happyLabel) + happyStackView.addArrangedSubview(happyDescriptionLabel) + happyStackView.addArrangedSubview(happySlider) + energyStackView.addArrangedSubview(energyLabel) + energyStackView.addArrangedSubview(energyDescriptionLabel) + energyStackView.addArrangedSubview(energySlider) + + stackView.addArrangedSubview(happyStackView) + stackView.addArrangedSubview(energyStackView) + stackView.addArrangedSubview(submitButton) + + NSLayoutConstraint.activate([ + stackView.leadingAnchor.constraint(equalTo: view.safeAreaLayoutGuide.leadingAnchor, constant: 32), + stackView.trailingAnchor.constraint(equalTo: view.safeAreaLayoutGuide.trailingAnchor, constant: -32), + stackView.topAnchor.constraint(equalTo: view.safeAreaLayoutGuide.topAnchor, constant: 50), + stackView.bottomAnchor.constraint(equalTo: view.safeAreaLayoutGuide.bottomAnchor, constant: -100) + ]) + } + + func configureSlider() { + NSLayoutConstraint.activate([ + happySlider.leadingAnchor.constraint(equalTo: stackView.leadingAnchor), + happySlider.trailingAnchor.constraint(equalTo: stackView.trailingAnchor), + energySlider.leadingAnchor.constraint(equalTo: stackView.leadingAnchor), + energySlider.trailingAnchor.constraint(equalTo: stackView.trailingAnchor) + ]) + } +} diff --git a/FE/MoodMeterDiary/MoodMeterDiary/Controller/MainViewController.swift b/FE/MoodMeterDiary/MoodMeterDiary/Controller/MainViewController.swift new file mode 100644 index 0000000..e4c3e12 --- /dev/null +++ b/FE/MoodMeterDiary/MoodMeterDiary/Controller/MainViewController.swift @@ -0,0 +1,41 @@ +// +// MainViewController.swift +// MoodMeterDiary +// +// Created by mint on 1/17/24. +// + +import UIKit + +class MainViewController: UIViewController { + let calendarView: UICalendarView = { + let calendar = UICalendarView() + calendar.calendar = .current + calendar.locale = .current + calendar.fontDesign = .monospaced + calendar.translatesAutoresizingMaskIntoConstraints = false + + return calendar + }() + + override func viewDidLoad() { + super.viewDidLoad() + view.backgroundColor = .systemBackground + navigationItem.title = "MOODMETER" + configureCalendarView() + // Do any additional setup after loading the view. + } + + func configureCalendarView() { + view.addSubview(calendarView) + + NSLayoutConstraint.activate([ + calendarView.leadingAnchor.constraint(equalTo: view.safeAreaLayoutGuide.leadingAnchor), + calendarView.trailingAnchor.constraint(equalTo: view.safeAreaLayoutGuide.trailingAnchor), + calendarView.topAnchor.constraint(equalTo: view.safeAreaLayoutGuide.topAnchor), + calendarView.bottomAnchor.constraint(equalTo: view.safeAreaLayoutGuide.bottomAnchor) + ]) + } + +} + diff --git a/FE/MoodMeterDiary/MoodMeterDiary/Controller/ProfileViewController.swift b/FE/MoodMeterDiary/MoodMeterDiary/Controller/ProfileViewController.swift new file mode 100644 index 0000000..a50e42f --- /dev/null +++ b/FE/MoodMeterDiary/MoodMeterDiary/Controller/ProfileViewController.swift @@ -0,0 +1,16 @@ +// +// ProfileViewController.swift +// MoodMeterDiary +// +// Created by minsong kim on 1/23/24. +// + +import UIKit + +class ProfileViewController: UIViewController { + override func viewDidLoad() { + super.viewDidLoad() + view.backgroundColor = .systemMint + // Do any additional setup after loading the view. + } +} diff --git a/FE/MoodMeterDiary/MoodMeterDiary/Controller/TabBarViewController.swift b/FE/MoodMeterDiary/MoodMeterDiary/Controller/TabBarViewController.swift new file mode 100644 index 0000000..b81f776 --- /dev/null +++ b/FE/MoodMeterDiary/MoodMeterDiary/Controller/TabBarViewController.swift @@ -0,0 +1,33 @@ +// +// TabBarViewController.swift +// MoodMeterDiary +// +// Created by minsong kim on 1/23/24. +// + +import UIKit + +class TabBarViewController: UITabBarController { + override func viewDidLoad() { + super.viewDidLoad() + + setUpViewControllers() + } + + func setUpViewControllers() { + let main = UINavigationController(rootViewController: MainViewController()) + let profile = UINavigationController(rootViewController: ProfileViewController()) + let diary = UINavigationController(rootViewController: DiaryViewController()) + + main.tabBarItem.title = "달력" + profile.tabBarItem.title = "프로필" + diary.tabBarItem.title = "글쓰기" + + main.tabBarItem.image = UIImage(systemName: "calendar") + profile.tabBarItem.image = UIImage(systemName: "person.circle.fill") + diary.tabBarItem.image = UIImage(systemName: "square.and.pencil") + + viewControllers = [main, diary, profile] + } +} + diff --git a/FE/MoodMeterDiary/MoodMeterDiary/Info.plist b/FE/MoodMeterDiary/MoodMeterDiary/Info.plist new file mode 100644 index 0000000..0eb786d --- /dev/null +++ b/FE/MoodMeterDiary/MoodMeterDiary/Info.plist @@ -0,0 +1,23 @@ + + + + + UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + UISceneConfigurations + + UIWindowSceneSessionRoleApplication + + + UISceneConfigurationName + Default Configuration + UISceneDelegateClassName + $(PRODUCT_MODULE_NAME).SceneDelegate + + + + + + diff --git a/FE/MoodMeterDiary/MoodMeterDiary/Model/Member.swift b/FE/MoodMeterDiary/MoodMeterDiary/Model/Member.swift new file mode 100644 index 0000000..6ff72ec --- /dev/null +++ b/FE/MoodMeterDiary/MoodMeterDiary/Model/Member.swift @@ -0,0 +1,15 @@ +// +// Member.swift +// MoodMeterDiary +// +// Created by minsong kim on 1/26/24. +// + +import Foundation + +struct Member { + let id: String + let password: String + var name: String + var diaryCount: Int +} diff --git a/FE/MoodMeterDiary/MoodMeterDiary/Resource/Assets.xcassets/AccentColor.colorset/Contents.json b/FE/MoodMeterDiary/MoodMeterDiary/Resource/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 0000000..eb87897 --- /dev/null +++ b/FE/MoodMeterDiary/MoodMeterDiary/Resource/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/FE/MoodMeterDiary/MoodMeterDiary/Resource/Assets.xcassets/AppIcon.appiconset/Contents.json b/FE/MoodMeterDiary/MoodMeterDiary/Resource/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..13613e3 --- /dev/null +++ b/FE/MoodMeterDiary/MoodMeterDiary/Resource/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/FE/MoodMeterDiary/MoodMeterDiary/Resource/Assets.xcassets/Contents.json b/FE/MoodMeterDiary/MoodMeterDiary/Resource/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/FE/MoodMeterDiary/MoodMeterDiary/Resource/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/FE/MoodMeterDiary/MoodMeterDiary/View/Base.lproj/LaunchScreen.storyboard b/FE/MoodMeterDiary/MoodMeterDiary/View/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..865e932 --- /dev/null +++ b/FE/MoodMeterDiary/MoodMeterDiary/View/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + +