From 97d582e1e42b23967bc21bc13bbd29c6a4c2429e Mon Sep 17 00:00:00 2001 From: Jon Manning Date: Sun, 24 Jul 2016 11:53:15 +1000 Subject: [PATCH] Now includes the worked examples --- .../project.pbxproj | 511 ++++++++++++++++++ .../contents.xcworkspacedata | 7 + .../AppDelegate.swift | 72 +++ .../AppIcon.appiconset/Contents.json | 68 +++ .../Base.lproj/LaunchScreen.storyboard | 27 + .../Base.lproj/Main.storyboard | 136 +++++ ...ldingApplicationsTableViewController.swift | 112 ++++ .../BuildingSwiftApplications/Info.plist | 47 ++ .../ViewController.swift | 91 ++++ .../BuildingSwiftApplicationsTests.swift | 36 ++ .../BuildingSwiftApplicationsTests/Info.plist | 24 + .../BuildingSwiftApplicationsUITests.swift | 36 ++ .../Info.plist | 24 + CommandLine/CommandLine/data.csv | 3 +- CommandLine/CommandLine/main.swift | 42 +- .../project.pbxproj | 248 +++++++++ .../contents.xcworkspacedata | 7 + .../ExampleCommandLine/main.swift | 12 + 18 files changed, 1491 insertions(+), 12 deletions(-) create mode 100644 BuildingSwiftApplications/BuildingSwiftApplications.xcodeproj/project.pbxproj create mode 100644 BuildingSwiftApplications/BuildingSwiftApplications.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 BuildingSwiftApplications/BuildingSwiftApplications/AppDelegate.swift create mode 100644 BuildingSwiftApplications/BuildingSwiftApplications/Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 BuildingSwiftApplications/BuildingSwiftApplications/Base.lproj/LaunchScreen.storyboard create mode 100644 BuildingSwiftApplications/BuildingSwiftApplications/Base.lproj/Main.storyboard create mode 100644 BuildingSwiftApplications/BuildingSwiftApplications/BuildingApplicationsTableViewController.swift create mode 100644 BuildingSwiftApplications/BuildingSwiftApplications/Info.plist create mode 100644 BuildingSwiftApplications/BuildingSwiftApplications/ViewController.swift create mode 100644 BuildingSwiftApplications/BuildingSwiftApplicationsTests/BuildingSwiftApplicationsTests.swift create mode 100644 BuildingSwiftApplications/BuildingSwiftApplicationsTests/Info.plist create mode 100644 BuildingSwiftApplications/BuildingSwiftApplicationsUITests/BuildingSwiftApplicationsUITests.swift create mode 100644 BuildingSwiftApplications/BuildingSwiftApplicationsUITests/Info.plist create mode 100644 ExampleCommandLine/ExampleCommandLine.xcodeproj/project.pbxproj create mode 100644 ExampleCommandLine/ExampleCommandLine.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 ExampleCommandLine/ExampleCommandLine/main.swift diff --git a/BuildingSwiftApplications/BuildingSwiftApplications.xcodeproj/project.pbxproj b/BuildingSwiftApplications/BuildingSwiftApplications.xcodeproj/project.pbxproj new file mode 100644 index 0000000..890e938 --- /dev/null +++ b/BuildingSwiftApplications/BuildingSwiftApplications.xcodeproj/project.pbxproj @@ -0,0 +1,511 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 68FE67AF1D41592D00284B6C /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 68FE67AE1D41592D00284B6C /* AppDelegate.swift */; }; + 68FE67B11D41592D00284B6C /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 68FE67B01D41592D00284B6C /* ViewController.swift */; }; + 68FE67B41D41592D00284B6C /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 68FE67B21D41592D00284B6C /* Main.storyboard */; }; + 68FE67B61D41592D00284B6C /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 68FE67B51D41592D00284B6C /* Assets.xcassets */; }; + 68FE67B91D41592D00284B6C /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 68FE67B71D41592D00284B6C /* LaunchScreen.storyboard */; }; + 68FE67C41D41592D00284B6C /* BuildingSwiftApplicationsTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 68FE67C31D41592D00284B6C /* BuildingSwiftApplicationsTests.swift */; }; + 68FE67CF1D41592D00284B6C /* BuildingSwiftApplicationsUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 68FE67CE1D41592D00284B6C /* BuildingSwiftApplicationsUITests.swift */; }; + 68FE67DD1D416BE600284B6C /* BuildingApplicationsTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 68FE67DC1D416BE600284B6C /* BuildingApplicationsTableViewController.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 68FE67C01D41592D00284B6C /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 68FE67A31D41592D00284B6C /* Project object */; + proxyType = 1; + remoteGlobalIDString = 68FE67AA1D41592D00284B6C; + remoteInfo = BuildingSwiftApplications; + }; + 68FE67CB1D41592D00284B6C /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 68FE67A31D41592D00284B6C /* Project object */; + proxyType = 1; + remoteGlobalIDString = 68FE67AA1D41592D00284B6C; + remoteInfo = BuildingSwiftApplications; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 68FE67AB1D41592D00284B6C /* BuildingSwiftApplications.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = BuildingSwiftApplications.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 68FE67AE1D41592D00284B6C /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 68FE67B01D41592D00284B6C /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + 68FE67B31D41592D00284B6C /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 68FE67B51D41592D00284B6C /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 68FE67B81D41592D00284B6C /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 68FE67BA1D41592D00284B6C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 68FE67BF1D41592D00284B6C /* BuildingSwiftApplicationsTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = BuildingSwiftApplicationsTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 68FE67C31D41592D00284B6C /* BuildingSwiftApplicationsTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BuildingSwiftApplicationsTests.swift; sourceTree = ""; }; + 68FE67C51D41592D00284B6C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 68FE67CA1D41592D00284B6C /* BuildingSwiftApplicationsUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = BuildingSwiftApplicationsUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 68FE67CE1D41592D00284B6C /* BuildingSwiftApplicationsUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BuildingSwiftApplicationsUITests.swift; sourceTree = ""; }; + 68FE67D01D41592D00284B6C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 68FE67DC1D416BE600284B6C /* BuildingApplicationsTableViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BuildingApplicationsTableViewController.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 68FE67A81D41592D00284B6C /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 68FE67BC1D41592D00284B6C /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 68FE67C71D41592D00284B6C /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 68FE67A21D41592D00284B6C = { + isa = PBXGroup; + children = ( + 68FE67AD1D41592D00284B6C /* BuildingSwiftApplications */, + 68FE67C21D41592D00284B6C /* BuildingSwiftApplicationsTests */, + 68FE67CD1D41592D00284B6C /* BuildingSwiftApplicationsUITests */, + 68FE67AC1D41592D00284B6C /* Products */, + ); + sourceTree = ""; + }; + 68FE67AC1D41592D00284B6C /* Products */ = { + isa = PBXGroup; + children = ( + 68FE67AB1D41592D00284B6C /* BuildingSwiftApplications.app */, + 68FE67BF1D41592D00284B6C /* BuildingSwiftApplicationsTests.xctest */, + 68FE67CA1D41592D00284B6C /* BuildingSwiftApplicationsUITests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 68FE67AD1D41592D00284B6C /* BuildingSwiftApplications */ = { + isa = PBXGroup; + children = ( + 68FE67AE1D41592D00284B6C /* AppDelegate.swift */, + 68FE67B01D41592D00284B6C /* ViewController.swift */, + 68FE67B21D41592D00284B6C /* Main.storyboard */, + 68FE67DC1D416BE600284B6C /* BuildingApplicationsTableViewController.swift */, + 68FE67B51D41592D00284B6C /* Assets.xcassets */, + 68FE67B71D41592D00284B6C /* LaunchScreen.storyboard */, + 68FE67BA1D41592D00284B6C /* Info.plist */, + ); + path = BuildingSwiftApplications; + sourceTree = ""; + }; + 68FE67C21D41592D00284B6C /* BuildingSwiftApplicationsTests */ = { + isa = PBXGroup; + children = ( + 68FE67C31D41592D00284B6C /* BuildingSwiftApplicationsTests.swift */, + 68FE67C51D41592D00284B6C /* Info.plist */, + ); + path = BuildingSwiftApplicationsTests; + sourceTree = ""; + }; + 68FE67CD1D41592D00284B6C /* BuildingSwiftApplicationsUITests */ = { + isa = PBXGroup; + children = ( + 68FE67CE1D41592D00284B6C /* BuildingSwiftApplicationsUITests.swift */, + 68FE67D01D41592D00284B6C /* Info.plist */, + ); + path = BuildingSwiftApplicationsUITests; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 68FE67AA1D41592D00284B6C /* BuildingSwiftApplications */ = { + isa = PBXNativeTarget; + buildConfigurationList = 68FE67D31D41592D00284B6C /* Build configuration list for PBXNativeTarget "BuildingSwiftApplications" */; + buildPhases = ( + 68FE67A71D41592D00284B6C /* Sources */, + 68FE67A81D41592D00284B6C /* Frameworks */, + 68FE67A91D41592D00284B6C /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = BuildingSwiftApplications; + productName = BuildingSwiftApplications; + productReference = 68FE67AB1D41592D00284B6C /* BuildingSwiftApplications.app */; + productType = "com.apple.product-type.application"; + }; + 68FE67BE1D41592D00284B6C /* BuildingSwiftApplicationsTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 68FE67D61D41592D00284B6C /* Build configuration list for PBXNativeTarget "BuildingSwiftApplicationsTests" */; + buildPhases = ( + 68FE67BB1D41592D00284B6C /* Sources */, + 68FE67BC1D41592D00284B6C /* Frameworks */, + 68FE67BD1D41592D00284B6C /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 68FE67C11D41592D00284B6C /* PBXTargetDependency */, + ); + name = BuildingSwiftApplicationsTests; + productName = BuildingSwiftApplicationsTests; + productReference = 68FE67BF1D41592D00284B6C /* BuildingSwiftApplicationsTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 68FE67C91D41592D00284B6C /* BuildingSwiftApplicationsUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 68FE67D91D41592D00284B6C /* Build configuration list for PBXNativeTarget "BuildingSwiftApplicationsUITests" */; + buildPhases = ( + 68FE67C61D41592D00284B6C /* Sources */, + 68FE67C71D41592D00284B6C /* Frameworks */, + 68FE67C81D41592D00284B6C /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 68FE67CC1D41592D00284B6C /* PBXTargetDependency */, + ); + name = BuildingSwiftApplicationsUITests; + productName = BuildingSwiftApplicationsUITests; + productReference = 68FE67CA1D41592D00284B6C /* BuildingSwiftApplicationsUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 68FE67A31D41592D00284B6C /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 0730; + LastUpgradeCheck = 0730; + ORGANIZATIONNAME = "Secret Lab"; + TargetAttributes = { + 68FE67AA1D41592D00284B6C = { + CreatedOnToolsVersion = 7.3; + }; + 68FE67BE1D41592D00284B6C = { + CreatedOnToolsVersion = 7.3; + TestTargetID = 68FE67AA1D41592D00284B6C; + }; + 68FE67C91D41592D00284B6C = { + CreatedOnToolsVersion = 7.3; + TestTargetID = 68FE67AA1D41592D00284B6C; + }; + }; + }; + buildConfigurationList = 68FE67A61D41592D00284B6C /* Build configuration list for PBXProject "BuildingSwiftApplications" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 68FE67A21D41592D00284B6C; + productRefGroup = 68FE67AC1D41592D00284B6C /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 68FE67AA1D41592D00284B6C /* BuildingSwiftApplications */, + 68FE67BE1D41592D00284B6C /* BuildingSwiftApplicationsTests */, + 68FE67C91D41592D00284B6C /* BuildingSwiftApplicationsUITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 68FE67A91D41592D00284B6C /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 68FE67B91D41592D00284B6C /* LaunchScreen.storyboard in Resources */, + 68FE67B61D41592D00284B6C /* Assets.xcassets in Resources */, + 68FE67B41D41592D00284B6C /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 68FE67BD1D41592D00284B6C /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 68FE67C81D41592D00284B6C /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 68FE67A71D41592D00284B6C /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 68FE67DD1D416BE600284B6C /* BuildingApplicationsTableViewController.swift in Sources */, + 68FE67B11D41592D00284B6C /* ViewController.swift in Sources */, + 68FE67AF1D41592D00284B6C /* AppDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 68FE67BB1D41592D00284B6C /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 68FE67C41D41592D00284B6C /* BuildingSwiftApplicationsTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 68FE67C61D41592D00284B6C /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 68FE67CF1D41592D00284B6C /* BuildingSwiftApplicationsUITests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 68FE67C11D41592D00284B6C /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 68FE67AA1D41592D00284B6C /* BuildingSwiftApplications */; + targetProxy = 68FE67C01D41592D00284B6C /* PBXContainerItemProxy */; + }; + 68FE67CC1D41592D00284B6C /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 68FE67AA1D41592D00284B6C /* BuildingSwiftApplications */; + targetProxy = 68FE67CB1D41592D00284B6C /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 68FE67B21D41592D00284B6C /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 68FE67B31D41592D00284B6C /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 68FE67B71D41592D00284B6C /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 68FE67B81D41592D00284B6C /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 68FE67D11D41592D00284B6C /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + 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 = 9.3; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 68FE67D21D41592D00284B6C /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + 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 = 9.3; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 68FE67D41D41592D00284B6C /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + INFOPLIST_FILE = BuildingSwiftApplications/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = au.com.secretlab.BuildingSwiftApplications; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + 68FE67D51D41592D00284B6C /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + INFOPLIST_FILE = BuildingSwiftApplications/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = au.com.secretlab.BuildingSwiftApplications; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; + 68FE67D71D41592D00284B6C /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + INFOPLIST_FILE = BuildingSwiftApplicationsTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = au.com.secretlab.BuildingSwiftApplicationsTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/BuildingSwiftApplications.app/BuildingSwiftApplications"; + }; + name = Debug; + }; + 68FE67D81D41592D00284B6C /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + INFOPLIST_FILE = BuildingSwiftApplicationsTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = au.com.secretlab.BuildingSwiftApplicationsTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/BuildingSwiftApplications.app/BuildingSwiftApplications"; + }; + name = Release; + }; + 68FE67DA1D41592D00284B6C /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + INFOPLIST_FILE = BuildingSwiftApplicationsUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = au.com.secretlab.BuildingSwiftApplicationsUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_TARGET_NAME = BuildingSwiftApplications; + }; + name = Debug; + }; + 68FE67DB1D41592D00284B6C /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + INFOPLIST_FILE = BuildingSwiftApplicationsUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = au.com.secretlab.BuildingSwiftApplicationsUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_TARGET_NAME = BuildingSwiftApplications; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 68FE67A61D41592D00284B6C /* Build configuration list for PBXProject "BuildingSwiftApplications" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 68FE67D11D41592D00284B6C /* Debug */, + 68FE67D21D41592D00284B6C /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 68FE67D31D41592D00284B6C /* Build configuration list for PBXNativeTarget "BuildingSwiftApplications" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 68FE67D41D41592D00284B6C /* Debug */, + 68FE67D51D41592D00284B6C /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; + 68FE67D61D41592D00284B6C /* Build configuration list for PBXNativeTarget "BuildingSwiftApplicationsTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 68FE67D71D41592D00284B6C /* Debug */, + 68FE67D81D41592D00284B6C /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; + 68FE67D91D41592D00284B6C /* Build configuration list for PBXNativeTarget "BuildingSwiftApplicationsUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 68FE67DA1D41592D00284B6C /* Debug */, + 68FE67DB1D41592D00284B6C /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; +/* End XCConfigurationList section */ + }; + rootObject = 68FE67A31D41592D00284B6C /* Project object */; +} diff --git a/BuildingSwiftApplications/BuildingSwiftApplications.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/BuildingSwiftApplications/BuildingSwiftApplications.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..4d82f8c --- /dev/null +++ b/BuildingSwiftApplications/BuildingSwiftApplications.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/BuildingSwiftApplications/BuildingSwiftApplications/AppDelegate.swift b/BuildingSwiftApplications/BuildingSwiftApplications/AppDelegate.swift new file mode 100644 index 0000000..7fd4db2 --- /dev/null +++ b/BuildingSwiftApplications/BuildingSwiftApplications/AppDelegate.swift @@ -0,0 +1,72 @@ +// +// AppDelegate.swift +// BuildingSwiftApplications +// +// Created by Jon Manning on 22/07/2016. +// Copyright © 2016 Secret Lab. All rights reserved. +// + +import UIKit + +@UIApplicationMain +class AppDelegate: UIResponder, UIApplicationDelegate { + + var window: UIWindow? + + + func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { + // Override point for customization after application launch. + + print("Hello from applicationDidFinishLaunching") + + NSOperationQueue.mainQueue().addOperationWithBlock { + print("Hello from the main queue!") + } + + let backgroundQueue = NSOperationQueue() + + backgroundQueue.addOperationWithBlock { + print("Hello from the background queue") + + NSOperationQueue.mainQueue().addOperationWithBlock({ + print("Hello from the main queue, called by the background queue!") + }) + } + + + + + + + + + + + return true + } + + func applicationWillResignActive(application: UIApplication) { + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. + } + + func applicationDidEnterBackground(application: UIApplication) { + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. + } + + func applicationWillEnterForeground(application: UIApplication) { + // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. + } + + func applicationDidBecomeActive(application: UIApplication) { + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. + } + + func applicationWillTerminate(application: UIApplication) { + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. + } + + +} + diff --git a/BuildingSwiftApplications/BuildingSwiftApplications/Assets.xcassets/AppIcon.appiconset/Contents.json b/BuildingSwiftApplications/BuildingSwiftApplications/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..36d2c80 --- /dev/null +++ b/BuildingSwiftApplications/BuildingSwiftApplications/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,68 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "3x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/BuildingSwiftApplications/BuildingSwiftApplications/Base.lproj/LaunchScreen.storyboard b/BuildingSwiftApplications/BuildingSwiftApplications/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..2e721e1 --- /dev/null +++ b/BuildingSwiftApplications/BuildingSwiftApplications/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/BuildingSwiftApplications/BuildingSwiftApplications/Base.lproj/Main.storyboard b/BuildingSwiftApplications/BuildingSwiftApplications/Base.lproj/Main.storyboard new file mode 100644 index 0000000..30f601a --- /dev/null +++ b/BuildingSwiftApplications/BuildingSwiftApplications/Base.lproj/Main.storyboard @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/BuildingSwiftApplications/BuildingSwiftApplications/BuildingApplicationsTableViewController.swift b/BuildingSwiftApplications/BuildingSwiftApplications/BuildingApplicationsTableViewController.swift new file mode 100644 index 0000000..abf81db --- /dev/null +++ b/BuildingSwiftApplications/BuildingSwiftApplications/BuildingApplicationsTableViewController.swift @@ -0,0 +1,112 @@ +// +// BuildingApplicationsTableViewController.swift +// BuildingSwiftApplications +// +// Created by Jon Manning on 22/07/2016. +// Copyright © 2016 Secret Lab. All rights reserved. +// + +import UIKit + +class BuildingApplicationsTableViewController: UITableViewController { + + var nameList = ["Once", "Upon", "A", "Time"] + + override func viewDidLoad() { + super.viewDidLoad() + + // Uncomment the following line to preserve selection between presentations + // self.clearsSelectionOnViewWillAppear = false + + // Uncomment the following line to display an Edit button in the navigation bar for this view controller. + // self.navigationItem.rightBarButtonItem = self.editButtonItem() + } + + override func didReceiveMemoryWarning() { + super.didReceiveMemoryWarning() + // Dispose of any resources that can be recreated. + } + + // MARK: - Table view data source + + override func numberOfSectionsInTableView(tableView: UITableView) -> Int { + // #warning Incomplete implementation, return the number of sections + return 1 + } + + override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int { + // #warning Incomplete implementation, return the number of rows + return nameList.count + } + + + override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { + + let cell = tableView.dequeueReusableCellWithIdentifier("nameCell", forIndexPath: indexPath) + + let word = nameList[indexPath.row] + + cell.textLabel?.text = word + + // Configure the cell... + + return cell + } + + override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) { + + let word = nameList[indexPath.row] + + print("User tapped on \(word)") + + tableView.deselectRowAtIndexPath(indexPath, animated: true) + + + } + + /* + // Override to support conditional editing of the table view. + override func tableView(tableView: UITableView, canEditRowAtIndexPath indexPath: NSIndexPath) -> Bool { + // Return false if you do not want the specified item to be editable. + return true + } + */ + + /* + // Override to support editing the table view. + override func tableView(tableView: UITableView, commitEditingStyle editingStyle: UITableViewCellEditingStyle, forRowAtIndexPath indexPath: NSIndexPath) { + if editingStyle == .Delete { + // Delete the row from the data source + tableView.deleteRowsAtIndexPaths([indexPath], withRowAnimation: .Fade) + } else if editingStyle == .Insert { + // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view + } + } + */ + + /* + // Override to support rearranging the table view. + override func tableView(tableView: UITableView, moveRowAtIndexPath fromIndexPath: NSIndexPath, toIndexPath: NSIndexPath) { + + } + */ + + /* + // Override to support conditional rearranging of the table view. + override func tableView(tableView: UITableView, canMoveRowAtIndexPath indexPath: NSIndexPath) -> Bool { + // Return false if you do not want the item to be re-orderable. + return true + } + */ + + /* + // MARK: - Navigation + + // In a storyboard-based application, you will often want to do a little preparation before navigation + override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) { + // Get the new view controller using segue.destinationViewController. + // Pass the selected object to the new view controller. + } + */ + +} diff --git a/BuildingSwiftApplications/BuildingSwiftApplications/Info.plist b/BuildingSwiftApplications/BuildingSwiftApplications/Info.plist new file mode 100644 index 0000000..40c6215 --- /dev/null +++ b/BuildingSwiftApplications/BuildingSwiftApplications/Info.plist @@ -0,0 +1,47 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/BuildingSwiftApplications/BuildingSwiftApplications/ViewController.swift b/BuildingSwiftApplications/BuildingSwiftApplications/ViewController.swift new file mode 100644 index 0000000..72a7e5f --- /dev/null +++ b/BuildingSwiftApplications/BuildingSwiftApplications/ViewController.swift @@ -0,0 +1,91 @@ +// +// ViewController.swift +// BuildingSwiftApplications +// +// Created by Jon Manning on 22/07/2016. +// Copyright © 2016 Secret Lab. All rights reserved. +// + +import UIKit + +class ViewController: UIViewController { + + var documentsFolderURL : NSURL { + + let URLs = NSFileManager.defaultManager().URLsForDirectory(NSSearchPathDirectory.DocumentDirectory, inDomains: NSSearchPathDomainMask.UserDomainMask) + + let documentURL = URLs[0] + + return documentURL + + } + + override func viewDidLoad() { + super.viewDidLoad() + // Do any additional setup after loading the view, typically from a nib. + + guard let data = "Hello, world".dataUsingEncoding(NSUTF8StringEncoding) else { + return + } + + let textFileURL = documentsFolderURL.URLByAppendingPathComponent("Hello.txt") + + print(textFileURL) + + do { + try data.writeToURL(textFileURL, options: []) + } catch let error { + print("there was an error: \(error)") + } + + let loadedData = NSData(contentsOfURL: textFileURL) + + + guard let imageURL = NSURL(string: "https://placekitten.com/g/200/300") else { + print("Invalid URL!") + return + } + + NSURLSession.sharedSession().dataTaskWithURL(imageURL) { (data, response, error) in + + guard let theData = data else { + print("Didn't get any data!") + return + } + + guard let image = UIImage(data: theData) else { + print("Failed to get an image!") + return + } + + NSOperationQueue.mainQueue().addOperationWithBlock({ + self.imageView.image = image + }) + }.resume() + + } + + @IBAction func showPurpleScreen(sender: AnyObject) { + + self.performSegueWithIdentifier("showScreen", sender: self) + + + } + + @IBOutlet weak var imageView: UIImageView! + @IBOutlet weak var label: UILabel! + + @IBAction func buttonTapped(sender: AnyObject) { + + label.text = "Button was tapped!" + + } + + override func didReceiveMemoryWarning() { + super.didReceiveMemoryWarning() + // Dispose of any resources that can be recreated. + } + + +} + diff --git a/BuildingSwiftApplications/BuildingSwiftApplicationsTests/BuildingSwiftApplicationsTests.swift b/BuildingSwiftApplications/BuildingSwiftApplicationsTests/BuildingSwiftApplicationsTests.swift new file mode 100644 index 0000000..2f55c80 --- /dev/null +++ b/BuildingSwiftApplications/BuildingSwiftApplicationsTests/BuildingSwiftApplicationsTests.swift @@ -0,0 +1,36 @@ +// +// BuildingSwiftApplicationsTests.swift +// BuildingSwiftApplicationsTests +// +// Created by Jon Manning on 22/07/2016. +// Copyright © 2016 Secret Lab. All rights reserved. +// + +import XCTest +@testable import BuildingSwiftApplications + +class BuildingSwiftApplicationsTests: XCTestCase { + + override func setUp() { + super.setUp() + // Put setup code here. This method is called before the invocation of each test method in the class. + } + + override func tearDown() { + // Put teardown code here. This method is called after the invocation of each test method in the class. + super.tearDown() + } + + func testExample() { + // This is an example of a functional test case. + // Use XCTAssert and related functions to verify your tests produce the correct results. + } + + func testPerformanceExample() { + // This is an example of a performance test case. + self.measureBlock { + // Put the code you want to measure the time of here. + } + } + +} diff --git a/BuildingSwiftApplications/BuildingSwiftApplicationsTests/Info.plist b/BuildingSwiftApplications/BuildingSwiftApplicationsTests/Info.plist new file mode 100644 index 0000000..ba72822 --- /dev/null +++ b/BuildingSwiftApplications/BuildingSwiftApplicationsTests/Info.plist @@ -0,0 +1,24 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + + diff --git a/BuildingSwiftApplications/BuildingSwiftApplicationsUITests/BuildingSwiftApplicationsUITests.swift b/BuildingSwiftApplications/BuildingSwiftApplicationsUITests/BuildingSwiftApplicationsUITests.swift new file mode 100644 index 0000000..effcf35 --- /dev/null +++ b/BuildingSwiftApplications/BuildingSwiftApplicationsUITests/BuildingSwiftApplicationsUITests.swift @@ -0,0 +1,36 @@ +// +// BuildingSwiftApplicationsUITests.swift +// BuildingSwiftApplicationsUITests +// +// Created by Jon Manning on 22/07/2016. +// Copyright © 2016 Secret Lab. All rights reserved. +// + +import XCTest + +class BuildingSwiftApplicationsUITests: XCTestCase { + + override func setUp() { + super.setUp() + + // 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 + // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. + XCUIApplication().launch() + + // 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 tearDown() { + // Put teardown code here. This method is called after the invocation of each test method in the class. + super.tearDown() + } + + func testExample() { + // Use recording to get started writing UI tests. + // Use XCTAssert and related functions to verify your tests produce the correct results. + } + +} diff --git a/BuildingSwiftApplications/BuildingSwiftApplicationsUITests/Info.plist b/BuildingSwiftApplications/BuildingSwiftApplicationsUITests/Info.plist new file mode 100644 index 0000000..ba72822 --- /dev/null +++ b/BuildingSwiftApplications/BuildingSwiftApplicationsUITests/Info.plist @@ -0,0 +1,24 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + + diff --git a/CommandLine/CommandLine/data.csv b/CommandLine/CommandLine/data.csv index 4bc2a4c..5b28d7d 100644 --- a/CommandLine/CommandLine/data.csv +++ b/CommandLine/CommandLine/data.csv @@ -16,4 +16,5 @@ Neptune Fuel,5 Neptune Fuel,7 Mars Food,8 Mars Food,7 -Mars Food,9 \ No newline at end of file +Mars Food,9 + diff --git a/CommandLine/CommandLine/main.swift b/CommandLine/CommandLine/main.swift index 8ce87e2..29ead04 100644 --- a/CommandLine/CommandLine/main.swift +++ b/CommandLine/CommandLine/main.swift @@ -12,30 +12,50 @@ let data = try! String(contentsOfFile: "data.csv") let lines = data.componentsSeparatedByCharactersInSet(NSCharacterSet.newlineCharacterSet()) +// the total values of the different + var foodTotal = 0 var fuelTotal = 0 - +var totals = [ + "fuel":0, + "food":0 +] for lineNumber in 1.. + + + + diff --git a/ExampleCommandLine/ExampleCommandLine/main.swift b/ExampleCommandLine/ExampleCommandLine/main.swift new file mode 100644 index 0000000..6f7dc4c --- /dev/null +++ b/ExampleCommandLine/ExampleCommandLine/main.swift @@ -0,0 +1,12 @@ +// +// main.swift +// ExampleCommandLine +// +// Created by Jon Manning on 21/07/2016. +// Copyright © 2016 Secret Lab. All rights reserved. +// + +import Foundation + +print("Hello, World!") +