diff options
| author | Fuwn <[email protected]> | 2025-02-11 19:54:44 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-02-11 19:59:18 -0800 |
| commit | 2894eb5363c435078a8689594bf2797973c916b8 (patch) | |
| tree | d22fa8195113aadbb46124f18896d99d71bb5b45 | |
| download | swift502-2894eb5363c435078a8689594bf2797973c916b8.tar.xz swift502-2894eb5363c435078a8689594bf2797973c916b8.zip | |
feat: Initial commit
| -rw-r--r-- | .gitignore | 16 | ||||
| -rw-r--r-- | .swift-version | 1 | ||||
| -rw-r--r-- | LICENSE.txt | 17 | ||||
| -rw-r--r-- | Swift502.xcodeproj/project.pbxproj | 596 | ||||
| -rw-r--r-- | Swift502.xcodeproj/project.xcworkspace/contents.xcworkspacedata | 7 | ||||
| -rw-r--r-- | Swift502/Assets.xcassets/AccentColor.colorset/Contents.json | 11 | ||||
| -rw-r--r-- | Swift502/Assets.xcassets/AppIcon.appiconset/Contents.json | 85 | ||||
| -rw-r--r-- | Swift502/Assets.xcassets/Contents.json | 6 | ||||
| -rw-r--r-- | Swift502/ContentView.swift | 17 | ||||
| -rw-r--r-- | Swift502/Preview Content/Preview Assets.xcassets/Contents.json | 6 | ||||
| -rw-r--r-- | Swift502/Swift502.entitlements | 10 | ||||
| -rw-r--r-- | Swift502/Swift502App.swift | 10 | ||||
| -rw-r--r-- | Swift502Tests/Swift502Tests.swift | 7 | ||||
| -rw-r--r-- | Swift502UITests/Swift502UITests.swift | 36 | ||||
| -rw-r--r-- | Swift502UITests/Swift502UITestsLaunchTests.swift | 25 |
15 files changed, 850 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d60834e --- /dev/null +++ b/.gitignore @@ -0,0 +1,16 @@ +# Xcode +*.xcodeproj/* +!*.xcodeproj/project.pbxproj +!*.xcodeproj/xcshareddata/ +!*.xcodeproj/*.xcworkspace/ + +*.xcodeproj/*.xcworkspace/* +!*.xcodeproj/*.xcworkspace/contents.xcworkspacedata +!*.xcodeproj/*.xcworkspace/xcshareddata/ + +*.xcodeproj/*.xcworkspace/xcshareddata/* +!*.xcodeproj/*.xcworkspace/xcshareddata/swiftpm/ + +# Other +.DS_Store + diff --git a/.swift-version b/.swift-version new file mode 100644 index 0000000..819e07a --- /dev/null +++ b/.swift-version @@ -0,0 +1 @@ +5.0 diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..390b3b2 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,17 @@ +All Rights Reserved + +Copyright (c) 2025 Fuwn + +THE CONTENTS OF THIS PROJECT ARE PROPRIETARY AND CONFIDENTIAL. +UNAUTHORIZED COPYING, TRANSFERRING OR REPRODUCTION OF THE CONTENTS OF THIS PROJECT, VIA ANY MEDIUM IS STRICTLY PROHIBITED. + +The receipt or possession of the source code and/or any parts thereof does not convey or imply any right to use them +for any purpose other than the purpose for which they were provided to you. + +The software is provided "AS IS", without warranty of any kind, express or implied, including but not limited to +the warranties of merchantability, fitness for a particular purpose and non infringement. +In no event shall the authors or copyright holders be liable for any claim, damages or other liability, +whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software +or the use or other dealings in the software. + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the software. diff --git a/Swift502.xcodeproj/project.pbxproj b/Swift502.xcodeproj/project.pbxproj new file mode 100644 index 0000000..179ceed --- /dev/null +++ b/Swift502.xcodeproj/project.pbxproj @@ -0,0 +1,596 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 77; + objects = { + +/* Begin PBXContainerItemProxy section */ + 4CE4181F2D5C4DE500F2ECC7 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 4CE418052D5C4DE400F2ECC7 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 4CE4180C2D5C4DE400F2ECC7; + remoteInfo = Swift502; + }; + 4CE418292D5C4DE500F2ECC7 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 4CE418052D5C4DE400F2ECC7 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 4CE4180C2D5C4DE400F2ECC7; + remoteInfo = Swift502; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 4CE4180D2D5C4DE400F2ECC7 /* Swift502.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Swift502.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 4CE4181E2D5C4DE500F2ECC7 /* Swift502Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = Swift502Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 4CE418282D5C4DE500F2ECC7 /* Swift502UITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = Swift502UITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; +/* End PBXFileReference section */ + +/* Begin PBXFileSystemSynchronizedRootGroup section */ + 4CE4180F2D5C4DE400F2ECC7 /* Swift502 */ = { + isa = PBXFileSystemSynchronizedRootGroup; + path = Swift502; + sourceTree = "<group>"; + }; + 4CE418212D5C4DE500F2ECC7 /* Swift502Tests */ = { + isa = PBXFileSystemSynchronizedRootGroup; + path = Swift502Tests; + sourceTree = "<group>"; + }; + 4CE4182B2D5C4DE500F2ECC7 /* Swift502UITests */ = { + isa = PBXFileSystemSynchronizedRootGroup; + path = Swift502UITests; + sourceTree = "<group>"; + }; +/* End PBXFileSystemSynchronizedRootGroup section */ + +/* Begin PBXFrameworksBuildPhase section */ + 4CE4180A2D5C4DE400F2ECC7 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 4CE4181B2D5C4DE500F2ECC7 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 4CE418252D5C4DE500F2ECC7 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 4CE418042D5C4DE400F2ECC7 = { + isa = PBXGroup; + children = ( + 4CE4180F2D5C4DE400F2ECC7 /* Swift502 */, + 4CE418212D5C4DE500F2ECC7 /* Swift502Tests */, + 4CE4182B2D5C4DE500F2ECC7 /* Swift502UITests */, + 4CE4180E2D5C4DE400F2ECC7 /* Products */, + ); + sourceTree = "<group>"; + }; + 4CE4180E2D5C4DE400F2ECC7 /* Products */ = { + isa = PBXGroup; + children = ( + 4CE4180D2D5C4DE400F2ECC7 /* Swift502.app */, + 4CE4181E2D5C4DE500F2ECC7 /* Swift502Tests.xctest */, + 4CE418282D5C4DE500F2ECC7 /* Swift502UITests.xctest */, + ); + name = Products; + sourceTree = "<group>"; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 4CE4180C2D5C4DE400F2ECC7 /* Swift502 */ = { + isa = PBXNativeTarget; + buildConfigurationList = 4CE418322D5C4DE500F2ECC7 /* Build configuration list for PBXNativeTarget "Swift502" */; + buildPhases = ( + 4CE418092D5C4DE400F2ECC7 /* Sources */, + 4CE4180A2D5C4DE400F2ECC7 /* Frameworks */, + 4CE4180B2D5C4DE400F2ECC7 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + fileSystemSynchronizedGroups = ( + 4CE4180F2D5C4DE400F2ECC7 /* Swift502 */, + ); + name = Swift502; + packageProductDependencies = ( + ); + productName = Swift502; + productReference = 4CE4180D2D5C4DE400F2ECC7 /* Swift502.app */; + productType = "com.apple.product-type.application"; + }; + 4CE4181D2D5C4DE500F2ECC7 /* Swift502Tests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 4CE418352D5C4DE500F2ECC7 /* Build configuration list for PBXNativeTarget "Swift502Tests" */; + buildPhases = ( + 4CE4181A2D5C4DE500F2ECC7 /* Sources */, + 4CE4181B2D5C4DE500F2ECC7 /* Frameworks */, + 4CE4181C2D5C4DE500F2ECC7 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 4CE418202D5C4DE500F2ECC7 /* PBXTargetDependency */, + ); + fileSystemSynchronizedGroups = ( + 4CE418212D5C4DE500F2ECC7 /* Swift502Tests */, + ); + name = Swift502Tests; + packageProductDependencies = ( + ); + productName = Swift502Tests; + productReference = 4CE4181E2D5C4DE500F2ECC7 /* Swift502Tests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 4CE418272D5C4DE500F2ECC7 /* Swift502UITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 4CE418382D5C4DE500F2ECC7 /* Build configuration list for PBXNativeTarget "Swift502UITests" */; + buildPhases = ( + 4CE418242D5C4DE500F2ECC7 /* Sources */, + 4CE418252D5C4DE500F2ECC7 /* Frameworks */, + 4CE418262D5C4DE500F2ECC7 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 4CE4182A2D5C4DE500F2ECC7 /* PBXTargetDependency */, + ); + fileSystemSynchronizedGroups = ( + 4CE4182B2D5C4DE500F2ECC7 /* Swift502UITests */, + ); + name = Swift502UITests; + packageProductDependencies = ( + ); + productName = Swift502UITests; + productReference = 4CE418282D5C4DE500F2ECC7 /* Swift502UITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 4CE418052D5C4DE400F2ECC7 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 1620; + LastUpgradeCheck = 1620; + TargetAttributes = { + 4CE4180C2D5C4DE400F2ECC7 = { + CreatedOnToolsVersion = 16.2; + }; + 4CE4181D2D5C4DE500F2ECC7 = { + CreatedOnToolsVersion = 16.2; + TestTargetID = 4CE4180C2D5C4DE400F2ECC7; + }; + 4CE418272D5C4DE500F2ECC7 = { + CreatedOnToolsVersion = 16.2; + TestTargetID = 4CE4180C2D5C4DE400F2ECC7; + }; + }; + }; + buildConfigurationList = 4CE418082D5C4DE400F2ECC7 /* Build configuration list for PBXProject "Swift502" */; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 4CE418042D5C4DE400F2ECC7; + minimizedProjectReferenceProxies = 1; + preferredProjectObjectVersion = 77; + productRefGroup = 4CE4180E2D5C4DE400F2ECC7 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 4CE4180C2D5C4DE400F2ECC7 /* Swift502 */, + 4CE4181D2D5C4DE500F2ECC7 /* Swift502Tests */, + 4CE418272D5C4DE500F2ECC7 /* Swift502UITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 4CE4180B2D5C4DE400F2ECC7 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 4CE4181C2D5C4DE500F2ECC7 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 4CE418262D5C4DE500F2ECC7 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 4CE418092D5C4DE400F2ECC7 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 4CE4181A2D5C4DE500F2ECC7 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 4CE418242D5C4DE500F2ECC7 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 4CE418202D5C4DE500F2ECC7 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 4CE4180C2D5C4DE400F2ECC7 /* Swift502 */; + targetProxy = 4CE4181F2D5C4DE500F2ECC7 /* PBXContainerItemProxy */; + }; + 4CE4182A2D5C4DE500F2ECC7 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 4CE4180C2D5C4DE400F2ECC7 /* Swift502 */; + targetProxy = 4CE418292D5C4DE500F2ECC7 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + 4CE418302D5C4DE500F2ECC7 /* 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; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 4CE418312D5C4DE500F2ECC7 /* 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; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SWIFT_COMPILATION_MODE = wholemodule; + }; + name = Release; + }; + 4CE418332D5C4DE500F2ECC7 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_ENTITLEMENTS = Swift502/Swift502.entitlements; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_ASSET_PATHS = "\"Swift502/Preview Content\""; + DEVELOPMENT_TEAM = D6JHZ49FTL; + ENABLE_HARDENED_RUNTIME = YES; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + "INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES; + "INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphonesimulator*]" = YES; + "INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphoneos*]" = YES; + "INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphonesimulator*]" = YES; + "INFOPLIST_KEY_UILaunchScreen_Generation[sdk=iphoneos*]" = YES; + "INFOPLIST_KEY_UILaunchScreen_Generation[sdk=iphonesimulator*]" = YES; + "INFOPLIST_KEY_UIStatusBarStyle[sdk=iphoneos*]" = UIStatusBarStyleDefault; + "INFOPLIST_KEY_UIStatusBarStyle[sdk=iphonesimulator*]" = UIStatusBarStyleDefault; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + IPHONEOS_DEPLOYMENT_TARGET = 18.2; + LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks"; + "LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks"; + MACOSX_DEPLOYMENT_TARGET = 15.2; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.fuwned.Swift502; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = auto; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx xros xrsimulator"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2,7"; + XROS_DEPLOYMENT_TARGET = 2.2; + }; + name = Debug; + }; + 4CE418342D5C4DE500F2ECC7 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_ENTITLEMENTS = Swift502/Swift502.entitlements; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_ASSET_PATHS = "\"Swift502/Preview Content\""; + DEVELOPMENT_TEAM = D6JHZ49FTL; + ENABLE_HARDENED_RUNTIME = YES; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + "INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES; + "INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphonesimulator*]" = YES; + "INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphoneos*]" = YES; + "INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphonesimulator*]" = YES; + "INFOPLIST_KEY_UILaunchScreen_Generation[sdk=iphoneos*]" = YES; + "INFOPLIST_KEY_UILaunchScreen_Generation[sdk=iphonesimulator*]" = YES; + "INFOPLIST_KEY_UIStatusBarStyle[sdk=iphoneos*]" = UIStatusBarStyleDefault; + "INFOPLIST_KEY_UIStatusBarStyle[sdk=iphonesimulator*]" = UIStatusBarStyleDefault; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + IPHONEOS_DEPLOYMENT_TARGET = 18.2; + LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks"; + "LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks"; + MACOSX_DEPLOYMENT_TARGET = 15.2; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.fuwned.Swift502; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = auto; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx xros xrsimulator"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2,7"; + XROS_DEPLOYMENT_TARGET = 2.2; + }; + name = Release; + }; + 4CE418362D5C4DE500F2ECC7 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = D6JHZ49FTL; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 18.2; + MACOSX_DEPLOYMENT_TARGET = 15.2; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.fuwned.Swift502Tests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = auto; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx xros xrsimulator"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2,7"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Swift502.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Swift502"; + XROS_DEPLOYMENT_TARGET = 2.2; + }; + name = Debug; + }; + 4CE418372D5C4DE500F2ECC7 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = D6JHZ49FTL; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 18.2; + MACOSX_DEPLOYMENT_TARGET = 15.2; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.fuwned.Swift502Tests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = auto; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx xros xrsimulator"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2,7"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Swift502.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Swift502"; + XROS_DEPLOYMENT_TARGET = 2.2; + }; + name = Release; + }; + 4CE418392D5C4DE500F2ECC7 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = D6JHZ49FTL; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 18.2; + MACOSX_DEPLOYMENT_TARGET = 15.2; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.fuwned.Swift502UITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = auto; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx xros xrsimulator"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2,7"; + TEST_TARGET_NAME = Swift502; + XROS_DEPLOYMENT_TARGET = 2.2; + }; + name = Debug; + }; + 4CE4183A2D5C4DE500F2ECC7 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = D6JHZ49FTL; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 18.2; + MACOSX_DEPLOYMENT_TARGET = 15.2; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.fuwned.Swift502UITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = auto; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx xros xrsimulator"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2,7"; + TEST_TARGET_NAME = Swift502; + XROS_DEPLOYMENT_TARGET = 2.2; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 4CE418082D5C4DE400F2ECC7 /* Build configuration list for PBXProject "Swift502" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 4CE418302D5C4DE500F2ECC7 /* Debug */, + 4CE418312D5C4DE500F2ECC7 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 4CE418322D5C4DE500F2ECC7 /* Build configuration list for PBXNativeTarget "Swift502" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 4CE418332D5C4DE500F2ECC7 /* Debug */, + 4CE418342D5C4DE500F2ECC7 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 4CE418352D5C4DE500F2ECC7 /* Build configuration list for PBXNativeTarget "Swift502Tests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 4CE418362D5C4DE500F2ECC7 /* Debug */, + 4CE418372D5C4DE500F2ECC7 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 4CE418382D5C4DE500F2ECC7 /* Build configuration list for PBXNativeTarget "Swift502UITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 4CE418392D5C4DE500F2ECC7 /* Debug */, + 4CE4183A2D5C4DE500F2ECC7 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 4CE418052D5C4DE400F2ECC7 /* Project object */; +} diff --git a/Swift502.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Swift502.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/Swift502.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<Workspace + version = "1.0"> + <FileRef + location = "self:"> + </FileRef> +</Workspace> diff --git a/Swift502/Assets.xcassets/AccentColor.colorset/Contents.json b/Swift502/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 0000000..eb87897 --- /dev/null +++ b/Swift502/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Swift502/Assets.xcassets/AppIcon.appiconset/Contents.json b/Swift502/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..ffdfe15 --- /dev/null +++ b/Swift502/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,85 @@ +{ + "images" : [ + { + "idiom" : "universal", + "platform" : "ios", + "size" : "1024x1024" + }, + { + "appearances" : [ + { + "appearance" : "luminosity", + "value" : "dark" + } + ], + "idiom" : "universal", + "platform" : "ios", + "size" : "1024x1024" + }, + { + "appearances" : [ + { + "appearance" : "luminosity", + "value" : "tinted" + } + ], + "idiom" : "universal", + "platform" : "ios", + "size" : "1024x1024" + }, + { + "idiom" : "mac", + "scale" : "1x", + "size" : "16x16" + }, + { + "idiom" : "mac", + "scale" : "2x", + "size" : "16x16" + }, + { + "idiom" : "mac", + "scale" : "1x", + "size" : "32x32" + }, + { + "idiom" : "mac", + "scale" : "2x", + "size" : "32x32" + }, + { + "idiom" : "mac", + "scale" : "1x", + "size" : "128x128" + }, + { + "idiom" : "mac", + "scale" : "2x", + "size" : "128x128" + }, + { + "idiom" : "mac", + "scale" : "1x", + "size" : "256x256" + }, + { + "idiom" : "mac", + "scale" : "2x", + "size" : "256x256" + }, + { + "idiom" : "mac", + "scale" : "1x", + "size" : "512x512" + }, + { + "idiom" : "mac", + "scale" : "2x", + "size" : "512x512" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Swift502/Assets.xcassets/Contents.json b/Swift502/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/Swift502/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Swift502/ContentView.swift b/Swift502/ContentView.swift new file mode 100644 index 0000000..b000a7e --- /dev/null +++ b/Swift502/ContentView.swift @@ -0,0 +1,17 @@ +import SwiftUI + +struct ContentView: View { + var body: some View { + VStack { + Image(systemName: "globe") + .imageScale(.large) + .foregroundStyle(.tint) + Text("Hello, world!") + } + .padding() + } +} + +#Preview { + ContentView() +} diff --git a/Swift502/Preview Content/Preview Assets.xcassets/Contents.json b/Swift502/Preview Content/Preview Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/Swift502/Preview Content/Preview Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Swift502/Swift502.entitlements b/Swift502/Swift502.entitlements new file mode 100644 index 0000000..f2ef3ae --- /dev/null +++ b/Swift502/Swift502.entitlements @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> +<dict> + <key>com.apple.security.app-sandbox</key> + <true/> + <key>com.apple.security.files.user-selected.read-only</key> + <true/> +</dict> +</plist> diff --git a/Swift502/Swift502App.swift b/Swift502/Swift502App.swift new file mode 100644 index 0000000..c619f65 --- /dev/null +++ b/Swift502/Swift502App.swift @@ -0,0 +1,10 @@ +import SwiftUI + +@main +struct Swift502App: App { + var body: some Scene { + WindowGroup { + ContentView() + } + } +} diff --git a/Swift502Tests/Swift502Tests.swift b/Swift502Tests/Swift502Tests.swift new file mode 100644 index 0000000..9c1a07f --- /dev/null +++ b/Swift502Tests/Swift502Tests.swift @@ -0,0 +1,7 @@ +import Testing + +struct Swift502Tests { + @Test func example() async throws { + // Write your test here and use APIs like `#expect(...)` to check expected conditions. + } +} diff --git a/Swift502UITests/Swift502UITests.swift b/Swift502UITests/Swift502UITests.swift new file mode 100644 index 0000000..f3f3174 --- /dev/null +++ b/Swift502UITests/Swift502UITests.swift @@ -0,0 +1,36 @@ +import XCTest + +final class Swift502UITests: 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. + } + + @MainActor + 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. + } + + @MainActor + 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/Swift502UITests/Swift502UITestsLaunchTests.swift b/Swift502UITests/Swift502UITestsLaunchTests.swift new file mode 100644 index 0000000..3f1e570 --- /dev/null +++ b/Swift502UITests/Swift502UITestsLaunchTests.swift @@ -0,0 +1,25 @@ +import XCTest + +final class Swift502UITestsLaunchTests: XCTestCase { + override static var runsForEachTargetApplicationUIConfiguration: Bool { + true + } + + override func setUpWithError() throws { + continueAfterFailure = false + } + + @MainActor + 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) + } +} |