commit b4f90a901996f2702b814a08d7c55c8d49b6f6c1 Author: Jason Date: Tue Jan 16 22:55:44 2024 +0800 init diff --git a/jason.xcodeproj/project.pbxproj b/jason.xcodeproj/project.pbxproj new file mode 100644 index 0000000..58ebb5c --- /dev/null +++ b/jason.xcodeproj/project.pbxproj @@ -0,0 +1,681 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 56; + objects = { + +/* Begin PBXBuildFile section */ + 963267362B56C65600D7FAC9 /* TabbarView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 963267352B56C65600D7FAC9 /* TabbarView.swift */; }; + 963267382B56C6EF00D7FAC9 /* UserView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 963267372B56C6EF00D7FAC9 /* UserView.swift */; }; + 9632673B2B56C77500D7FAC9 /* ExploreView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9632673A2B56C77500D7FAC9 /* ExploreView.swift */; }; + 963267422B56CAD900D7FAC9 /* UserCardComponent.swift in Sources */ = {isa = PBXBuildFile; fileRef = 963267412B56CAD900D7FAC9 /* UserCardComponent.swift */; }; + 963267472B56CEA100D7FAC9 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 963267462B56CEA100D7FAC9 /* ViewController.swift */; }; + 9634A8F32B569860007C90C0 /* MyApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9634A8F22B569860007C90C0 /* MyApp.swift */; }; + 9634A8F52B569860007C90C0 /* HomeView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9634A8F42B569860007C90C0 /* HomeView.swift */; }; + 9634A8F92B569862007C90C0 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 9634A8F82B569862007C90C0 /* Assets.xcassets */; }; + 9634A8FC2B569862007C90C0 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 9634A8FB2B569862007C90C0 /* Preview Assets.xcassets */; }; + 9634A9062B569862007C90C0 /* jasonTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9634A9052B569862007C90C0 /* jasonTests.swift */; }; + 9634A9102B569862007C90C0 /* jasonUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9634A90F2B569862007C90C0 /* jasonUITests.swift */; }; + 9634A9122B569862007C90C0 /* jasonUITestsLaunchTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9634A9112B569862007C90C0 /* jasonUITestsLaunchTests.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 9634A9022B569862007C90C0 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 9634A8E72B569860007C90C0 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 9634A8EE2B569860007C90C0; + remoteInfo = jason; + }; + 9634A90C2B569862007C90C0 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 9634A8E72B569860007C90C0 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 9634A8EE2B569860007C90C0; + remoteInfo = jason; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 963267342B56C56700D7FAC9 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 963267352B56C65600D7FAC9 /* TabbarView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TabbarView.swift; sourceTree = ""; }; + 963267372B56C6EF00D7FAC9 /* UserView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UserView.swift; sourceTree = ""; }; + 9632673A2B56C77500D7FAC9 /* ExploreView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ExploreView.swift; sourceTree = ""; }; + 963267412B56CAD900D7FAC9 /* UserCardComponent.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UserCardComponent.swift; sourceTree = ""; }; + 963267462B56CEA100D7FAC9 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + 9634A8EF2B569860007C90C0 /* jason.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = jason.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 9634A8F22B569860007C90C0 /* MyApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MyApp.swift; sourceTree = ""; }; + 9634A8F42B569860007C90C0 /* HomeView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeView.swift; sourceTree = ""; }; + 9634A8F82B569862007C90C0 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 9634A8FB2B569862007C90C0 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; + 9634A9012B569862007C90C0 /* jasonTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = jasonTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 9634A9052B569862007C90C0 /* jasonTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = jasonTests.swift; sourceTree = ""; }; + 9634A90B2B569862007C90C0 /* jasonUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = jasonUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 9634A90F2B569862007C90C0 /* jasonUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = jasonUITests.swift; sourceTree = ""; }; + 9634A9112B569862007C90C0 /* jasonUITestsLaunchTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = jasonUITestsLaunchTests.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 9634A8EC2B569860007C90C0 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 9634A8FE2B569862007C90C0 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 9634A9082B569862007C90C0 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 9632673C2B56C88D00D7FAC9 /* Home */ = { + isa = PBXGroup; + children = ( + 9634A8F42B569860007C90C0 /* HomeView.swift */, + ); + path = Home; + sourceTree = ""; + }; + 9632673D2B56C89900D7FAC9 /* User */ = { + isa = PBXGroup; + children = ( + 963267372B56C6EF00D7FAC9 /* UserView.swift */, + ); + path = User; + sourceTree = ""; + }; + 9632673E2B56C8BD00D7FAC9 /* Explore */ = { + isa = PBXGroup; + children = ( + 9632673A2B56C77500D7FAC9 /* ExploreView.swift */, + ); + path = Explore; + sourceTree = ""; + }; + 9632673F2B56CA9E00D7FAC9 /* Components */ = { + isa = PBXGroup; + children = ( + 963267412B56CAD900D7FAC9 /* UserCardComponent.swift */, + ); + path = Components; + sourceTree = ""; + }; + 9634A8E62B569860007C90C0 = { + isa = PBXGroup; + children = ( + 9634A8F12B569860007C90C0 /* jason */, + 9634A9042B569862007C90C0 /* jasonTests */, + 9634A90E2B569862007C90C0 /* jasonUITests */, + 9634A8F02B569860007C90C0 /* Products */, + ); + sourceTree = ""; + }; + 9634A8F02B569860007C90C0 /* Products */ = { + isa = PBXGroup; + children = ( + 9634A8EF2B569860007C90C0 /* jason.app */, + 9634A9012B569862007C90C0 /* jasonTests.xctest */, + 9634A90B2B569862007C90C0 /* jasonUITests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 9634A8F12B569860007C90C0 /* jason */ = { + isa = PBXGroup; + children = ( + 9634A91E2B5698A2007C90C0 /* Controllers */, + 9632673F2B56CA9E00D7FAC9 /* Components */, + 9634A9202B5698B0007C90C0 /* Models */, + 9634A91F2B5698AB007C90C0 /* Views */, + 9634A8F22B569860007C90C0 /* MyApp.swift */, + 9634A8F82B569862007C90C0 /* Assets.xcassets */, + 963267342B56C56700D7FAC9 /* Info.plist */, + 9634A8FA2B569862007C90C0 /* Preview Content */, + ); + path = jason; + sourceTree = ""; + }; + 9634A8FA2B569862007C90C0 /* Preview Content */ = { + isa = PBXGroup; + children = ( + 9634A8FB2B569862007C90C0 /* Preview Assets.xcassets */, + ); + path = "Preview Content"; + sourceTree = ""; + }; + 9634A9042B569862007C90C0 /* jasonTests */ = { + isa = PBXGroup; + children = ( + 9634A9052B569862007C90C0 /* jasonTests.swift */, + ); + path = jasonTests; + sourceTree = ""; + }; + 9634A90E2B569862007C90C0 /* jasonUITests */ = { + isa = PBXGroup; + children = ( + 9634A90F2B569862007C90C0 /* jasonUITests.swift */, + 9634A9112B569862007C90C0 /* jasonUITestsLaunchTests.swift */, + ); + path = jasonUITests; + sourceTree = ""; + }; + 9634A91E2B5698A2007C90C0 /* Controllers */ = { + isa = PBXGroup; + children = ( + 963267462B56CEA100D7FAC9 /* ViewController.swift */, + ); + path = Controllers; + sourceTree = ""; + }; + 9634A91F2B5698AB007C90C0 /* Views */ = { + isa = PBXGroup; + children = ( + 963267352B56C65600D7FAC9 /* TabbarView.swift */, + 9632673E2B56C8BD00D7FAC9 /* Explore */, + 9632673C2B56C88D00D7FAC9 /* Home */, + 9632673D2B56C89900D7FAC9 /* User */, + ); + path = Views; + sourceTree = ""; + }; + 9634A9202B5698B0007C90C0 /* Models */ = { + isa = PBXGroup; + children = ( + ); + path = Models; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 9634A8EE2B569860007C90C0 /* jason */ = { + isa = PBXNativeTarget; + buildConfigurationList = 9634A9152B569862007C90C0 /* Build configuration list for PBXNativeTarget "jason" */; + buildPhases = ( + 9634A8EB2B569860007C90C0 /* Sources */, + 9634A8EC2B569860007C90C0 /* Frameworks */, + 9634A8ED2B569860007C90C0 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = jason; + productName = jason; + productReference = 9634A8EF2B569860007C90C0 /* jason.app */; + productType = "com.apple.product-type.application"; + }; + 9634A9002B569862007C90C0 /* jasonTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 9634A9182B569862007C90C0 /* Build configuration list for PBXNativeTarget "jasonTests" */; + buildPhases = ( + 9634A8FD2B569862007C90C0 /* Sources */, + 9634A8FE2B569862007C90C0 /* Frameworks */, + 9634A8FF2B569862007C90C0 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 9634A9032B569862007C90C0 /* PBXTargetDependency */, + ); + name = jasonTests; + productName = jasonTests; + productReference = 9634A9012B569862007C90C0 /* jasonTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 9634A90A2B569862007C90C0 /* jasonUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 9634A91B2B569862007C90C0 /* Build configuration list for PBXNativeTarget "jasonUITests" */; + buildPhases = ( + 9634A9072B569862007C90C0 /* Sources */, + 9634A9082B569862007C90C0 /* Frameworks */, + 9634A9092B569862007C90C0 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 9634A90D2B569862007C90C0 /* PBXTargetDependency */, + ); + name = jasonUITests; + productName = jasonUITests; + productReference = 9634A90B2B569862007C90C0 /* jasonUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 9634A8E72B569860007C90C0 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 1520; + LastUpgradeCheck = 1520; + TargetAttributes = { + 9634A8EE2B569860007C90C0 = { + CreatedOnToolsVersion = 15.2; + }; + 9634A9002B569862007C90C0 = { + CreatedOnToolsVersion = 15.2; + TestTargetID = 9634A8EE2B569860007C90C0; + }; + 9634A90A2B569862007C90C0 = { + CreatedOnToolsVersion = 15.2; + TestTargetID = 9634A8EE2B569860007C90C0; + }; + }; + }; + buildConfigurationList = 9634A8EA2B569860007C90C0 /* Build configuration list for PBXProject "jason" */; + compatibilityVersion = "Xcode 14.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 9634A8E62B569860007C90C0; + productRefGroup = 9634A8F02B569860007C90C0 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 9634A8EE2B569860007C90C0 /* jason */, + 9634A9002B569862007C90C0 /* jasonTests */, + 9634A90A2B569862007C90C0 /* jasonUITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 9634A8ED2B569860007C90C0 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 9634A8FC2B569862007C90C0 /* Preview Assets.xcassets in Resources */, + 9634A8F92B569862007C90C0 /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 9634A8FF2B569862007C90C0 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 9634A9092B569862007C90C0 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 9634A8EB2B569860007C90C0 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 963267362B56C65600D7FAC9 /* TabbarView.swift in Sources */, + 9634A8F52B569860007C90C0 /* HomeView.swift in Sources */, + 9634A8F32B569860007C90C0 /* MyApp.swift in Sources */, + 963267382B56C6EF00D7FAC9 /* UserView.swift in Sources */, + 963267422B56CAD900D7FAC9 /* UserCardComponent.swift in Sources */, + 963267472B56CEA100D7FAC9 /* ViewController.swift in Sources */, + 9632673B2B56C77500D7FAC9 /* ExploreView.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 9634A8FD2B569862007C90C0 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 9634A9062B569862007C90C0 /* jasonTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 9634A9072B569862007C90C0 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 9634A9122B569862007C90C0 /* jasonUITestsLaunchTests.swift in Sources */, + 9634A9102B569862007C90C0 /* jasonUITests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 9634A9032B569862007C90C0 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 9634A8EE2B569860007C90C0 /* jason */; + targetProxy = 9634A9022B569862007C90C0 /* PBXContainerItemProxy */; + }; + 9634A90D2B569862007C90C0 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 9634A8EE2B569860007C90C0 /* jason */; + targetProxy = 9634A90C2B569862007C90C0 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + 9634A9132B569862007C90C0 /* 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; + }; + 9634A9142B569862007C90C0 /* 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; + }; + 9634A9162B569862007C90C0 /* 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_ASSET_PATHS = "\"jason/Preview Content\""; + DEVELOPMENT_TEAM = X6G557VKB9; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = jason/Info.plist; + INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = tech.uzchain.jason; + PRODUCT_NAME = "$(TARGET_NAME)"; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; + SUPPORTS_MACCATALYST = NO; + SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; + SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = 1; + }; + name = Debug; + }; + 9634A9172B569862007C90C0 /* 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_ASSET_PATHS = "\"jason/Preview Content\""; + DEVELOPMENT_TEAM = X6G557VKB9; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = jason/Info.plist; + INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = tech.uzchain.jason; + PRODUCT_NAME = "$(TARGET_NAME)"; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; + SUPPORTS_MACCATALYST = NO; + SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; + SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = 1; + }; + name = Release; + }; + 9634A9192B569862007C90C0 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = X6G557VKB9; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 17.2; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = tech.uzchain.jasonTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/jason.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/jason"; + }; + name = Debug; + }; + 9634A91A2B569862007C90C0 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = X6G557VKB9; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 17.2; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = tech.uzchain.jasonTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/jason.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/jason"; + }; + name = Release; + }; + 9634A91C2B569862007C90C0 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = X6G557VKB9; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = tech.uzchain.jasonUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = jason; + }; + name = Debug; + }; + 9634A91D2B569862007C90C0 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = X6G557VKB9; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = tech.uzchain.jasonUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = jason; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 9634A8EA2B569860007C90C0 /* Build configuration list for PBXProject "jason" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 9634A9132B569862007C90C0 /* Debug */, + 9634A9142B569862007C90C0 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 9634A9152B569862007C90C0 /* Build configuration list for PBXNativeTarget "jason" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 9634A9162B569862007C90C0 /* Debug */, + 9634A9172B569862007C90C0 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 9634A9182B569862007C90C0 /* Build configuration list for PBXNativeTarget "jasonTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 9634A9192B569862007C90C0 /* Debug */, + 9634A91A2B569862007C90C0 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 9634A91B2B569862007C90C0 /* Build configuration list for PBXNativeTarget "jasonUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 9634A91C2B569862007C90C0 /* Debug */, + 9634A91D2B569862007C90C0 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 9634A8E72B569860007C90C0 /* Project object */; +} diff --git a/jason.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/jason.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/jason.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/jason.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/jason.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/jason.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/jason.xcodeproj/project.xcworkspace/xcuserdata/jason.xcuserdatad/UserInterfaceState.xcuserstate b/jason.xcodeproj/project.xcworkspace/xcuserdata/jason.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..8780d1a Binary files /dev/null and b/jason.xcodeproj/project.xcworkspace/xcuserdata/jason.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/jason.xcodeproj/xcuserdata/jason.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/jason.xcodeproj/xcuserdata/jason.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist new file mode 100644 index 0000000..1cee824 --- /dev/null +++ b/jason.xcodeproj/xcuserdata/jason.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist @@ -0,0 +1,6 @@ + + + diff --git a/jason.xcodeproj/xcuserdata/jason.xcuserdatad/xcschemes/xcschememanagement.plist b/jason.xcodeproj/xcuserdata/jason.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..3a41d79 --- /dev/null +++ b/jason.xcodeproj/xcuserdata/jason.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,14 @@ + + + + + SchemeUserState + + jason.xcscheme_^#shared#^_ + + orderHint + 0 + + + + diff --git a/jason/Assets.xcassets/AccentColor.colorset/Contents.json b/jason/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 0000000..eb87897 --- /dev/null +++ b/jason/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/jason/Assets.xcassets/AppIcon.appiconset/Contents.json b/jason/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..aa39517 --- /dev/null +++ b/jason/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,14 @@ +{ + "images" : [ + { + "filename" : "logo.jpg", + "idiom" : "universal", + "platform" : "ios", + "size" : "1024x1024" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/jason/Assets.xcassets/AppIcon.appiconset/logo.jpg b/jason/Assets.xcassets/AppIcon.appiconset/logo.jpg new file mode 100644 index 0000000..9c0e750 Binary files /dev/null and b/jason/Assets.xcassets/AppIcon.appiconset/logo.jpg differ diff --git a/jason/Assets.xcassets/Colors/Background.colorset/Contents.json b/jason/Assets.xcassets/Colors/Background.colorset/Contents.json new file mode 100644 index 0000000..8a5b994 --- /dev/null +++ b/jason/Assets.xcassets/Colors/Background.colorset/Contents.json @@ -0,0 +1,38 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "srgb", + "components" : { + "alpha" : "1.000", + "blue" : "0x00", + "green" : "0x66", + "red" : "0xFF" + } + }, + "idiom" : "universal" + }, + { + "appearances" : [ + { + "appearance" : "luminosity", + "value" : "dark" + } + ], + "color" : { + "color-space" : "srgb", + "components" : { + "alpha" : "1.000", + "blue" : "0xFF", + "green" : "0x66", + "red" : "0x00" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/jason/Assets.xcassets/Colors/Contents.json b/jason/Assets.xcassets/Colors/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/jason/Assets.xcassets/Colors/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/jason/Assets.xcassets/Colors/MainText.colorset/Contents.json b/jason/Assets.xcassets/Colors/MainText.colorset/Contents.json new file mode 100644 index 0000000..f1c903f --- /dev/null +++ b/jason/Assets.xcassets/Colors/MainText.colorset/Contents.json @@ -0,0 +1,38 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "srgb", + "components" : { + "alpha" : "1.000", + "blue" : "0x23", + "green" : "0x23", + "red" : "0x23" + } + }, + "idiom" : "universal" + }, + { + "appearances" : [ + { + "appearance" : "luminosity", + "value" : "dark" + } + ], + "color" : { + "color-space" : "srgb", + "components" : { + "alpha" : "1.000", + "blue" : "0xEF", + "green" : "0xEF", + "red" : "0xEF" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/jason/Assets.xcassets/Colors/ReversColor.colorset/Contents.json b/jason/Assets.xcassets/Colors/ReversColor.colorset/Contents.json new file mode 100644 index 0000000..9c0e331 --- /dev/null +++ b/jason/Assets.xcassets/Colors/ReversColor.colorset/Contents.json @@ -0,0 +1,38 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "srgb", + "components" : { + "alpha" : "1.000", + "blue" : "0xFF", + "green" : "0xFF", + "red" : "0xFF" + } + }, + "idiom" : "universal" + }, + { + "appearances" : [ + { + "appearance" : "luminosity", + "value" : "dark" + } + ], + "color" : { + "color-space" : "srgb", + "components" : { + "alpha" : "1.000", + "blue" : "0x00", + "green" : "0x00", + "red" : "0x00" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/jason/Assets.xcassets/Contents.json b/jason/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/jason/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/jason/Assets.xcassets/Images/Contents.json b/jason/Assets.xcassets/Images/Contents.json new file mode 100644 index 0000000..6e96565 --- /dev/null +++ b/jason/Assets.xcassets/Images/Contents.json @@ -0,0 +1,9 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + }, + "properties" : { + "provides-namespace" : true + } +} diff --git a/jason/Assets.xcassets/Images/banner1.imageset/413.jpg b/jason/Assets.xcassets/Images/banner1.imageset/413.jpg new file mode 100644 index 0000000..12cbd4f Binary files /dev/null and b/jason/Assets.xcassets/Images/banner1.imageset/413.jpg differ diff --git a/jason/Assets.xcassets/Images/banner1.imageset/Contents.json b/jason/Assets.xcassets/Images/banner1.imageset/Contents.json new file mode 100644 index 0000000..e205d13 --- /dev/null +++ b/jason/Assets.xcassets/Images/banner1.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "413.jpg", + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/jason/Assets.xcassets/Images/banner2.imageset/420.jpg b/jason/Assets.xcassets/Images/banner2.imageset/420.jpg new file mode 100644 index 0000000..07c0923 Binary files /dev/null and b/jason/Assets.xcassets/Images/banner2.imageset/420.jpg differ diff --git a/jason/Assets.xcassets/Images/banner2.imageset/Contents.json b/jason/Assets.xcassets/Images/banner2.imageset/Contents.json new file mode 100644 index 0000000..a2fed07 --- /dev/null +++ b/jason/Assets.xcassets/Images/banner2.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "420.jpg", + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/jason/Assets.xcassets/Images/banner3.imageset/476.jpg b/jason/Assets.xcassets/Images/banner3.imageset/476.jpg new file mode 100644 index 0000000..40f7ff7 Binary files /dev/null and b/jason/Assets.xcassets/Images/banner3.imageset/476.jpg differ diff --git a/jason/Assets.xcassets/Images/banner3.imageset/Contents.json b/jason/Assets.xcassets/Images/banner3.imageset/Contents.json new file mode 100644 index 0000000..3307120 --- /dev/null +++ b/jason/Assets.xcassets/Images/banner3.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "476.jpg", + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/jason/Assets.xcassets/Images/logo.imageset/3.jpg b/jason/Assets.xcassets/Images/logo.imageset/3.jpg new file mode 100644 index 0000000..5e20603 Binary files /dev/null and b/jason/Assets.xcassets/Images/logo.imageset/3.jpg differ diff --git a/jason/Assets.xcassets/Images/logo.imageset/Contents.json b/jason/Assets.xcassets/Images/logo.imageset/Contents.json new file mode 100644 index 0000000..0863889 --- /dev/null +++ b/jason/Assets.xcassets/Images/logo.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "3.jpg", + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/jason/Components/UserCardComponent.swift b/jason/Components/UserCardComponent.swift new file mode 100644 index 0000000..87691ba --- /dev/null +++ b/jason/Components/UserCardComponent.swift @@ -0,0 +1,39 @@ +// +// UserCardComponent.swift +// jason +// +// Created by Jason on 2024/1/16. +// + +import SwiftUI + +struct UserCardComponent: View { + var body: some View { + VStack (alignment: .leading, spacing: 8, content: { + Spacer() + Image("Images/logo") + .resizable(resizingMode: /*@START_MENU_TOKEN@*/.stretch/*@END_MENU_TOKEN@*/) + .aspectRatio(contentMode: .fit) + .cornerRadius(8) + .frame(width: 64,height: 64) + Text("Jason.Chen") + .font(.largeTitle) + .foregroundColor(Color("ReversColor")) + Text("PlaceholderPlaceholderPlaceholderPlaceholderPlaceholderPlaceholderPlaceholderPlaceholderPlaceholderPlaceholderPlaceholderPlaceholderPlaceholderPlaceholder") + .font(.headline) + .foregroundColor(Color("ReversColor")) + .lineLimit(2) + .multilineTextAlignment(/*@START_MENU_TOKEN@*/.leading/*@END_MENU_TOKEN@*/) + }) + .padding(.all, 20) + .frame(height: 300) + .background(.ultraThinMaterial) + .cornerRadius(10) + .shadow(radius: 20) + .padding(.horizontal, 10) + } +} + +#Preview { + UserCardComponent() +} diff --git a/jason/Controllers/ViewController.swift b/jason/Controllers/ViewController.swift new file mode 100644 index 0000000..4a21dca --- /dev/null +++ b/jason/Controllers/ViewController.swift @@ -0,0 +1,17 @@ +// +// ViewController.swift +// jason +// +// Created by Jason on 2024/1/16. +// + +import UIKit + +class ViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + + // Do any additional setup after loading the view. + } +} diff --git a/jason/Info.plist b/jason/Info.plist new file mode 100644 index 0000000..0c67376 --- /dev/null +++ b/jason/Info.plist @@ -0,0 +1,5 @@ + + + + + diff --git a/jason/Item.swift b/jason/Item.swift new file mode 100644 index 0000000..e5e7ee8 --- /dev/null +++ b/jason/Item.swift @@ -0,0 +1,18 @@ +// +// Item.swift +// jason +// +// Created by Jason on 2024/1/16. +// + +import Foundation +import SwiftData + +@Model +final class Item { + var timestamp: Date + + init(timestamp: Date) { + self.timestamp = timestamp + } +} diff --git a/jason/MyApp.swift b/jason/MyApp.swift new file mode 100644 index 0000000..50f98f0 --- /dev/null +++ b/jason/MyApp.swift @@ -0,0 +1,18 @@ +// +// jasonApp.swift +// jason +// +// Created by Jason on 2024/1/16. +// + +import SwiftUI +import SwiftData + +@main +struct MyApp: App { + var body: some Scene { + WindowGroup { + TabbarView() + } + } +} diff --git a/jason/Preview Content/Preview Assets.xcassets/Contents.json b/jason/Preview Content/Preview Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/jason/Preview Content/Preview Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/jason/Views/Explore/ExploreView.swift b/jason/Views/Explore/ExploreView.swift new file mode 100644 index 0000000..f78db5a --- /dev/null +++ b/jason/Views/Explore/ExploreView.swift @@ -0,0 +1,24 @@ +// +// ExploreView.swift +// jason +// +// Created by Jason on 2024/1/16. +// + +import SwiftUI + +struct ExploreView: View { + var body: some View { + ScrollView { + VStack (alignment: .leading) { + UserCardComponent() + Text("item") + } + } + .background(Color.green) + } +} + +#Preview { + ExploreView() +} diff --git a/jason/Views/Home/HomeView.swift b/jason/Views/Home/HomeView.swift new file mode 100644 index 0000000..7e87e8c --- /dev/null +++ b/jason/Views/Home/HomeView.swift @@ -0,0 +1,24 @@ +// +// ContentView.swift +// jason +// +// Created by Jason on 2024/1/16. +// + +import SwiftUI +import SwiftData + +struct HomeView: View { + var body: some View { + ScrollView{ + VStack(alignment: .leading, content: { + UserCardComponent() + }) + } + .background(Color.orange) + } +} + +#Preview { + HomeView() +} diff --git a/jason/Views/TabbarView.swift b/jason/Views/TabbarView.swift new file mode 100644 index 0000000..06d5a35 --- /dev/null +++ b/jason/Views/TabbarView.swift @@ -0,0 +1,38 @@ +// +// TabbarView.swift +// jason +// +// Created by Jason on 2024/1/16. +// + +import SwiftUI + +struct TabbarView: View { + var body: some View { + TabView() { + HomeView() + .tabItem { + Image(systemName: "house") + Text("Home") + } + .tag(1) + ExploreView() + .tabItem { + Image(systemName: "magnifyingglass") + Text("Explore") + } + .tag(2) + UserView() + .tabItem { + Image(systemName: "person") + Text("User") + } + .tag(3) + } + .background(Color.white) + } +} + +#Preview { + TabbarView() +} diff --git a/jason/Views/User/UserView.swift b/jason/Views/User/UserView.swift new file mode 100644 index 0000000..8100efe --- /dev/null +++ b/jason/Views/User/UserView.swift @@ -0,0 +1,24 @@ +// +// UserView.swift +// jason +// +// Created by Jason on 2024/1/16. +// + +import SwiftUI + +struct UserView: View { + var body: some View { + ScrollView { + VStack (alignment: .leading) { + UserCardComponent() + Text("item") + } + } + .background(Color.red) + } +} + +#Preview { + UserView() +} diff --git a/jasonTests/jasonTests.swift b/jasonTests/jasonTests.swift new file mode 100644 index 0000000..8ff7425 --- /dev/null +++ b/jasonTests/jasonTests.swift @@ -0,0 +1,36 @@ +// +// jasonTests.swift +// jasonTests +// +// Created by Jason on 2024/1/16. +// + +import XCTest +@testable import jason + +final class jasonTests: XCTestCase { + + override func setUpWithError() throws { + // Put setup code here. This method is called before the invocation of each test method in the class. + } + + override func tearDownWithError() throws { + // Put teardown code here. This method is called after the invocation of each test method in the class. + } + + func testExample() throws { + // This is an example of a functional test case. + // Use XCTAssert and related functions to verify your tests produce the correct results. + // Any test you write for XCTest can be annotated as throws and async. + // Mark your test throws to produce an unexpected failure when your test encounters an uncaught error. + // Mark your test async to allow awaiting for asynchronous code to complete. Check the results with assertions afterwards. + } + + func testPerformanceExample() throws { + // This is an example of a performance test case. + self.measure { + // Put the code you want to measure the time of here. + } + } + +} diff --git a/jasonUITests/jasonUITests.swift b/jasonUITests/jasonUITests.swift new file mode 100644 index 0000000..226602e --- /dev/null +++ b/jasonUITests/jasonUITests.swift @@ -0,0 +1,41 @@ +// +// jasonUITests.swift +// jasonUITests +// +// Created by Jason on 2024/1/16. +// + +import XCTest + +final class jasonUITests: XCTestCase { + + override func setUpWithError() throws { + // Put setup code here. This method is called before the invocation of each test method in the class. + + // In UI tests it is usually best to stop immediately when a failure occurs. + continueAfterFailure = false + + // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. + } + + override func tearDownWithError() throws { + // Put teardown code here. This method is called after the invocation of each test method in the class. + } + + func testExample() throws { + // UI tests must launch the application that they test. + let app = XCUIApplication() + app.launch() + + // Use XCTAssert and related functions to verify your tests produce the correct results. + } + + func testLaunchPerformance() throws { + if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 7.0, *) { + // This measures how long it takes to launch your application. + measure(metrics: [XCTApplicationLaunchMetric()]) { + XCUIApplication().launch() + } + } + } +} diff --git a/jasonUITests/jasonUITestsLaunchTests.swift b/jasonUITests/jasonUITestsLaunchTests.swift new file mode 100644 index 0000000..4d33d6b --- /dev/null +++ b/jasonUITests/jasonUITestsLaunchTests.swift @@ -0,0 +1,32 @@ +// +// jasonUITestsLaunchTests.swift +// jasonUITests +// +// Created by Jason on 2024/1/16. +// + +import XCTest + +final class jasonUITestsLaunchTests: XCTestCase { + + override class var runsForEachTargetApplicationUIConfiguration: Bool { + true + } + + override func setUpWithError() throws { + continueAfterFailure = false + } + + func testLaunch() throws { + let app = XCUIApplication() + app.launch() + + // Insert steps here to perform after app launch but before taking a screenshot, + // such as logging into a test account or navigating somewhere in the app + + let attachment = XCTAttachment(screenshot: app.screenshot()) + attachment.name = "Launch Screen" + attachment.lifetime = .keepAlways + add(attachment) + } +}