diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..215a0ef --- /dev/null +++ b/.gitignore @@ -0,0 +1,123 @@ +# Created by https://www.toptal.com/developers/gitignore/api/visualstudiocode,swift,xcode +# Edit at https://www.toptal.com/developers/gitignore?templates=visualstudiocode,swift,xcode + +### Swift ### +# Xcode +# +# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore + +## User settings +xcuserdata/ + +## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9) +*.xcscmblueprint +*.xccheckout + +## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4) +build/ +DerivedData/ +*.moved-aside +*.pbxuser +!default.pbxuser +*.mode1v3 +!default.mode1v3 +*.mode2v3 +!default.mode2v3 +*.perspectivev3 +!default.perspectivev3 + +## Obj-C/Swift specific +*.hmap + +## App packaging +*.ipa +*.dSYM.zip +*.dSYM + +## Playgrounds +timeline.xctimeline +playground.xcworkspace + +# Swift Package Manager +# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. +# Packages/ +# Package.pins +# Package.resolved +# *.xcodeproj +# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata +# hence it is not needed unless you have added a package configuration file to your project +# .swiftpm + +.build/ + +# CocoaPods +# We recommend against adding the Pods directory to your .gitignore. However +# you should judge for yourself, the pros and cons are mentioned at: +# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control +# Pods/ +# Add this line if you want to avoid checking in source code from the Xcode workspace +# *.xcworkspace + +# Carthage +# Add this line if you want to avoid checking in source code from Carthage dependencies. +# Carthage/Checkouts + +Carthage/Build/ + +# Accio dependency management +Dependencies/ +.accio/ + +# fastlane +# It is recommended to not store the screenshots in the git repo. +# Instead, use fastlane to re-generate the screenshots whenever they are needed. +# For more information about the recommended setup visit: +# https://docs.fastlane.tools/best-practices/source-control/#source-control + +fastlane/report.xml +fastlane/Preview.html +fastlane/screenshots/**/*.png +fastlane/test_output + +# Code Injection +# After new code Injection tools there's a generated folder /iOSInjectionProject +# https://github.com/johnno1962/injectionforxcode + +iOSInjectionProject/ + +### VisualStudioCode ### +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +!.vscode/*.code-snippets + +# Local History for Visual Studio Code +.history/ + +# Built Visual Studio Code Extensions +*.vsix + +### VisualStudioCode Patch ### +# Ignore all local history of files +.history +.ionide + +### Xcode ### + +## Xcode 8 and earlier + +### Xcode Patch ### +*.xcodeproj/* +!*.xcodeproj/project.pbxproj +!*.xcodeproj/xcshareddata/ +!*.xcodeproj/project.xcworkspace/ +!*.xcworkspace/contents.xcworkspacedata +/*.gcno +**/xcshareddata/WorkspaceSettings.xcsettings + +# End of https://www.toptal.com/developers/gitignore/api/visualstudiocode,swift,xcode + +# weird apple files +._** \ No newline at end of file diff --git a/HelloWorld.xcodeproj/project.pbxproj b/HelloWorld.xcodeproj/project.pbxproj new file mode 100644 index 0000000..a09a501 --- /dev/null +++ b/HelloWorld.xcodeproj/project.pbxproj @@ -0,0 +1,588 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 55; + objects = { + +/* Begin PBXBuildFile section */ + 16FADE012ACDE13700D5B314 /* HelloWorldApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 16FADE002ACDE13700D5B314 /* HelloWorldApp.swift */; }; + 16FADE032ACDE13700D5B314 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 16FADE022ACDE13700D5B314 /* ContentView.swift */; }; + 16FADE052ACDE13900D5B314 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 16FADE042ACDE13900D5B314 /* Assets.xcassets */; }; + 16FADE082ACDE13900D5B314 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 16FADE072ACDE13900D5B314 /* Preview Assets.xcassets */; }; + 16FADE122ACDE13900D5B314 /* HelloWorldTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 16FADE112ACDE13900D5B314 /* HelloWorldTests.swift */; }; + 16FADE1C2ACDE13900D5B314 /* HelloWorldUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 16FADE1B2ACDE13900D5B314 /* HelloWorldUITests.swift */; }; + 16FADE1E2ACDE13900D5B314 /* HelloWorldUITestsLaunchTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 16FADE1D2ACDE13900D5B314 /* HelloWorldUITestsLaunchTests.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 16FADE0E2ACDE13900D5B314 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 16FADDF52ACDE13600D5B314 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 16FADDFC2ACDE13600D5B314; + remoteInfo = HelloWorld; + }; + 16FADE182ACDE13900D5B314 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 16FADDF52ACDE13600D5B314 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 16FADDFC2ACDE13600D5B314; + remoteInfo = HelloWorld; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 16FADDFD2ACDE13700D5B314 /* Hello World.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Hello World.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + 16FADE002ACDE13700D5B314 /* HelloWorldApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HelloWorldApp.swift; sourceTree = ""; }; + 16FADE022ACDE13700D5B314 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; + 16FADE042ACDE13900D5B314 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 16FADE072ACDE13900D5B314 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; + 16FADE0D2ACDE13900D5B314 /* HelloWorldTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = HelloWorldTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 16FADE112ACDE13900D5B314 /* HelloWorldTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HelloWorldTests.swift; sourceTree = ""; }; + 16FADE172ACDE13900D5B314 /* HelloWorldUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = HelloWorldUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 16FADE1B2ACDE13900D5B314 /* HelloWorldUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HelloWorldUITests.swift; sourceTree = ""; }; + 16FADE1D2ACDE13900D5B314 /* HelloWorldUITestsLaunchTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HelloWorldUITestsLaunchTests.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 16FADDFA2ACDE13600D5B314 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 16FADE0A2ACDE13900D5B314 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 16FADE142ACDE13900D5B314 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 16FADDF42ACDE13600D5B314 = { + isa = PBXGroup; + children = ( + 16FADDFF2ACDE13700D5B314 /* HelloWorld */, + 16FADE102ACDE13900D5B314 /* HelloWorldTests */, + 16FADE1A2ACDE13900D5B314 /* HelloWorldUITests */, + 16FADDFE2ACDE13700D5B314 /* Products */, + ); + sourceTree = ""; + }; + 16FADDFE2ACDE13700D5B314 /* Products */ = { + isa = PBXGroup; + children = ( + 16FADDFD2ACDE13700D5B314 /* Hello World.app */, + 16FADE0D2ACDE13900D5B314 /* HelloWorldTests.xctest */, + 16FADE172ACDE13900D5B314 /* HelloWorldUITests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 16FADDFF2ACDE13700D5B314 /* HelloWorld */ = { + isa = PBXGroup; + children = ( + 16FADE002ACDE13700D5B314 /* HelloWorldApp.swift */, + 16FADE022ACDE13700D5B314 /* ContentView.swift */, + 16FADE042ACDE13900D5B314 /* Assets.xcassets */, + 16FADE062ACDE13900D5B314 /* Preview Content */, + ); + path = HelloWorld; + sourceTree = ""; + }; + 16FADE062ACDE13900D5B314 /* Preview Content */ = { + isa = PBXGroup; + children = ( + 16FADE072ACDE13900D5B314 /* Preview Assets.xcassets */, + ); + path = "Preview Content"; + sourceTree = ""; + }; + 16FADE102ACDE13900D5B314 /* HelloWorldTests */ = { + isa = PBXGroup; + children = ( + 16FADE112ACDE13900D5B314 /* HelloWorldTests.swift */, + ); + path = HelloWorldTests; + sourceTree = ""; + }; + 16FADE1A2ACDE13900D5B314 /* HelloWorldUITests */ = { + isa = PBXGroup; + children = ( + 16FADE1B2ACDE13900D5B314 /* HelloWorldUITests.swift */, + 16FADE1D2ACDE13900D5B314 /* HelloWorldUITestsLaunchTests.swift */, + ); + path = HelloWorldUITests; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 16FADDFC2ACDE13600D5B314 /* HelloWorld */ = { + isa = PBXNativeTarget; + buildConfigurationList = 16FADE212ACDE13900D5B314 /* Build configuration list for PBXNativeTarget "HelloWorld" */; + buildPhases = ( + 16FADDF92ACDE13600D5B314 /* Sources */, + 16FADDFA2ACDE13600D5B314 /* Frameworks */, + 16FADDFB2ACDE13600D5B314 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = HelloWorld; + productName = HelloWorld; + productReference = 16FADDFD2ACDE13700D5B314 /* Hello World.app */; + productType = "com.apple.product-type.application"; + }; + 16FADE0C2ACDE13900D5B314 /* HelloWorldTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 16FADE242ACDE13900D5B314 /* Build configuration list for PBXNativeTarget "HelloWorldTests" */; + buildPhases = ( + 16FADE092ACDE13900D5B314 /* Sources */, + 16FADE0A2ACDE13900D5B314 /* Frameworks */, + 16FADE0B2ACDE13900D5B314 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 16FADE0F2ACDE13900D5B314 /* PBXTargetDependency */, + ); + name = HelloWorldTests; + productName = HelloWorldTests; + productReference = 16FADE0D2ACDE13900D5B314 /* HelloWorldTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 16FADE162ACDE13900D5B314 /* HelloWorldUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 16FADE272ACDE13900D5B314 /* Build configuration list for PBXNativeTarget "HelloWorldUITests" */; + buildPhases = ( + 16FADE132ACDE13900D5B314 /* Sources */, + 16FADE142ACDE13900D5B314 /* Frameworks */, + 16FADE152ACDE13900D5B314 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 16FADE192ACDE13900D5B314 /* PBXTargetDependency */, + ); + name = HelloWorldUITests; + productName = HelloWorldUITests; + productReference = 16FADE172ACDE13900D5B314 /* HelloWorldUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 16FADDF52ACDE13600D5B314 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 1340; + LastUpgradeCheck = 1340; + TargetAttributes = { + 16FADDFC2ACDE13600D5B314 = { + CreatedOnToolsVersion = 13.4.1; + }; + 16FADE0C2ACDE13900D5B314 = { + CreatedOnToolsVersion = 13.4.1; + TestTargetID = 16FADDFC2ACDE13600D5B314; + }; + 16FADE162ACDE13900D5B314 = { + CreatedOnToolsVersion = 13.4.1; + TestTargetID = 16FADDFC2ACDE13600D5B314; + }; + }; + }; + buildConfigurationList = 16FADDF82ACDE13600D5B314 /* Build configuration list for PBXProject "HelloWorld" */; + compatibilityVersion = "Xcode 13.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 16FADDF42ACDE13600D5B314; + productRefGroup = 16FADDFE2ACDE13700D5B314 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 16FADDFC2ACDE13600D5B314 /* HelloWorld */, + 16FADE0C2ACDE13900D5B314 /* HelloWorldTests */, + 16FADE162ACDE13900D5B314 /* HelloWorldUITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 16FADDFB2ACDE13600D5B314 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 16FADE082ACDE13900D5B314 /* Preview Assets.xcassets in Resources */, + 16FADE052ACDE13900D5B314 /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 16FADE0B2ACDE13900D5B314 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 16FADE152ACDE13900D5B314 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 16FADDF92ACDE13600D5B314 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 16FADE032ACDE13700D5B314 /* ContentView.swift in Sources */, + 16FADE012ACDE13700D5B314 /* HelloWorldApp.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 16FADE092ACDE13900D5B314 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 16FADE122ACDE13900D5B314 /* HelloWorldTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 16FADE132ACDE13900D5B314 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 16FADE1E2ACDE13900D5B314 /* HelloWorldUITestsLaunchTests.swift in Sources */, + 16FADE1C2ACDE13900D5B314 /* HelloWorldUITests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 16FADE0F2ACDE13900D5B314 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 16FADDFC2ACDE13600D5B314 /* HelloWorld */; + targetProxy = 16FADE0E2ACDE13900D5B314 /* PBXContainerItemProxy */; + }; + 16FADE192ACDE13900D5B314 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 16FADDFC2ACDE13600D5B314 /* HelloWorld */; + targetProxy = 16FADE182ACDE13900D5B314 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + 16FADE1F2ACDE13900D5B314 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++17"; + 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; + GCC_C_LANGUAGE_STANDARD = gnu11; + 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 = 15.5; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 16FADE202ACDE13900D5B314 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++17"; + 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; + GCC_C_LANGUAGE_STANDARD = gnu11; + 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 = 15.5; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 16FADE222ACDE13900D5B314 /* 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 = "\"HelloWorld/Preview Content\""; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchScreen_Generation = YES; + INFOPLIST_KEY_UIRequiresFullScreen = YES; + INFOPLIST_KEY_UIStatusBarHidden = YES; + INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + 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 = wien.technikum.HelloWorld; + PRODUCT_NAME = "Hello World"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 16FADE232ACDE13900D5B314 /* 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 = "\"HelloWorld/Preview Content\""; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchScreen_Generation = YES; + INFOPLIST_KEY_UIRequiresFullScreen = YES; + INFOPLIST_KEY_UIStatusBarHidden = YES; + INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + 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 = wien.technikum.HelloWorld; + PRODUCT_NAME = "Hello World"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; + 16FADE252ACDE13900D5B314 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 15.5; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = wien.technikum.HelloWorldTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/HelloWorld.app/HelloWorld"; + }; + name = Debug; + }; + 16FADE262ACDE13900D5B314 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 15.5; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = wien.technikum.HelloWorldTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/HelloWorld.app/HelloWorld"; + }; + name = Release; + }; + 16FADE282ACDE13900D5B314 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = wien.technikum.HelloWorldUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = HelloWorld; + }; + name = Debug; + }; + 16FADE292ACDE13900D5B314 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = wien.technikum.HelloWorldUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = HelloWorld; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 16FADDF82ACDE13600D5B314 /* Build configuration list for PBXProject "HelloWorld" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 16FADE1F2ACDE13900D5B314 /* Debug */, + 16FADE202ACDE13900D5B314 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 16FADE212ACDE13900D5B314 /* Build configuration list for PBXNativeTarget "HelloWorld" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 16FADE222ACDE13900D5B314 /* Debug */, + 16FADE232ACDE13900D5B314 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 16FADE242ACDE13900D5B314 /* Build configuration list for PBXNativeTarget "HelloWorldTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 16FADE252ACDE13900D5B314 /* Debug */, + 16FADE262ACDE13900D5B314 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 16FADE272ACDE13900D5B314 /* Build configuration list for PBXNativeTarget "HelloWorldUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 16FADE282ACDE13900D5B314 /* Debug */, + 16FADE292ACDE13900D5B314 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 16FADDF52ACDE13600D5B314 /* Project object */; +} diff --git a/HelloWorld.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/HelloWorld.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/HelloWorld.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/HelloWorld.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/HelloWorld.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/HelloWorld.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/HelloWorld/Assets.xcassets/AccentColor.colorset/Contents.json b/HelloWorld/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 0000000..eb87897 --- /dev/null +++ b/HelloWorld/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/HelloWorld/Assets.xcassets/AppIcon.appiconset/Contents.json b/HelloWorld/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..9221b9b --- /dev/null +++ b/HelloWorld/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,98 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "20x20" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "20x20" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "29x29" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "29x29" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "40x40" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "40x40" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "60x60" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "60x60" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "20x20" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "20x20" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "29x29" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "29x29" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "40x40" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "40x40" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "76x76" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "76x76" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "83.5x83.5" + }, + { + "idiom" : "ios-marketing", + "scale" : "1x", + "size" : "1024x1024" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/HelloWorld/Assets.xcassets/Contents.json b/HelloWorld/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/HelloWorld/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/HelloWorld/ContentView.swift b/HelloWorld/ContentView.swift new file mode 100644 index 0000000..ca3f97b --- /dev/null +++ b/HelloWorld/ContentView.swift @@ -0,0 +1,70 @@ +// +// ContentView.swift +// HelloWorld +// +// Created by Telekomlab6 on 04.10.23. +// + +import SwiftUI + +struct ContentView: View { + + // nur wenn die variablen als state markiert sind können sie sich bei + // der laufzeit ändern + + @State + private var buttonText: String = "Klick mich"; + + @State + var clickCounter: Int = 0; + + @State + private var textfieldText: String = "" + + var body: some View { + VStack{ + Text("Hello!") + .padding() + + // Nehmen den raum ein den sie maximal zur Verfügung haben + Spacer() + + Text("Hello!") + .padding() + + // UI Komponenten horizontal nebeneinander + HStack{ + Text("links").padding() + Text("rechts").padding() + } + Button(action: { + self.clickCounter += 1; + self.buttonText = "Neuer Text " + String(self.clickCounter) + }, label: { + Text(self.buttonText) + }) + + // mit einem $ kann man ein binding erzeugen + TextField("Hint", text: self.$textfieldText) + + Text("Textfield Text: \(self.addName(name: self.textfieldText))").padding() + + // fixen abstand vom spacer festlgen + Spacer().frame(height: 30.0) + + } + + } + + // in einer contentview klasse können auch funktionen erstellt werden + func addName(name: String) -> String { + return "Hello, \(name)" + } + +} + +struct ContentView_Previews: PreviewProvider { + static var previews: some View { + ContentView() + } +} diff --git a/HelloWorld/HelloWorldApp.swift b/HelloWorld/HelloWorldApp.swift new file mode 100644 index 0000000..5899d93 --- /dev/null +++ b/HelloWorld/HelloWorldApp.swift @@ -0,0 +1,19 @@ +// +// HelloWorldApp.swift +// HelloWorld +// +// Created by Telekomlab6 on 04.10.23. +// + +import SwiftUI + + +// einstiegspunkt der app, erkennbar an der @main annotation +@main +struct HelloWorldApp: App { + var body: some Scene { + WindowGroup { + ContentView() + } + } +} diff --git a/HelloWorld/Preview Content/Preview Assets.xcassets/Contents.json b/HelloWorld/Preview Content/Preview Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/HelloWorld/Preview Content/Preview Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/HelloWorldTests/HelloWorldTests.swift b/HelloWorldTests/HelloWorldTests.swift new file mode 100644 index 0000000..5e44d85 --- /dev/null +++ b/HelloWorldTests/HelloWorldTests.swift @@ -0,0 +1,36 @@ +// +// HelloWorldTests.swift +// HelloWorldTests +// +// Created by Telekomlab6 on 04.10.23. +// + +import XCTest +@testable import HelloWorld + +class HelloWorldTests: 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/HelloWorldUITests/HelloWorldUITests.swift b/HelloWorldUITests/HelloWorldUITests.swift new file mode 100644 index 0000000..ccf00e6 --- /dev/null +++ b/HelloWorldUITests/HelloWorldUITests.swift @@ -0,0 +1,41 @@ +// +// HelloWorldUITests.swift +// HelloWorldUITests +// +// Created by Telekomlab6 on 04.10.23. +// + +import XCTest + +class HelloWorldUITests: 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/HelloWorldUITests/HelloWorldUITestsLaunchTests.swift b/HelloWorldUITests/HelloWorldUITestsLaunchTests.swift new file mode 100644 index 0000000..2f2f5f2 --- /dev/null +++ b/HelloWorldUITests/HelloWorldUITestsLaunchTests.swift @@ -0,0 +1,32 @@ +// +// HelloWorldUITestsLaunchTests.swift +// HelloWorldUITests +// +// Created by Telekomlab6 on 04.10.23. +// + +import XCTest + +class HelloWorldUITestsLaunchTests: 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) + } +}