diff --git a/SwiftExample/Podfile b/SwiftExample/Podfile new file mode 100644 index 000000000..8f4f3d588 --- /dev/null +++ b/SwiftExample/Podfile @@ -0,0 +1,12 @@ +# Uncomment this line to define a global platform for your project + platform :ios, '9.0' +# Uncomment this line if you're using Swift + use_frameworks! + +target 'SwiftExample' do + +pod 'JSQMessagesViewController' + + +end + diff --git a/SwiftExample/Podfile.lock b/SwiftExample/Podfile.lock new file mode 100644 index 000000000..f881459f1 --- /dev/null +++ b/SwiftExample/Podfile.lock @@ -0,0 +1,13 @@ +PODS: + - JSQMessagesViewController (7.2.0): + - JSQSystemSoundPlayer (~> 2.0.1) + - JSQSystemSoundPlayer (2.0.1) + +DEPENDENCIES: + - JSQMessagesViewController + +SPEC CHECKSUMS: + JSQMessagesViewController: 73cab48aa92fc2d512f3b6724f3425cc47a19eb5 + JSQSystemSoundPlayer: c5850e77a4363ffd374cd851154b9af93264ed8d + +COCOAPODS: 0.39.0 diff --git a/SwiftExample/SwiftExample.xcodeproj/project.pbxproj b/SwiftExample/SwiftExample.xcodeproj/project.pbxproj new file mode 100644 index 000000000..0fe107be3 --- /dev/null +++ b/SwiftExample/SwiftExample.xcodeproj/project.pbxproj @@ -0,0 +1,713 @@ + + + + + archiveVersion + 1 + classes + + objectVersion + 46 + objects + + 06CDF8617707BDAD4696C3F1 + + fileRef + 51229C5EAF77B085DAE32206 + isa + PBXBuildFile + + 172CACF9AF57CFF29818FFA1 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + text.xcconfig + name + Pods-SwiftExample.release.xcconfig + path + Pods/Target Support Files/Pods-SwiftExample/Pods-SwiftExample.release.xcconfig + sourceTree + <group> + + 51229C5EAF77B085DAE32206 + + explicitFileType + wrapper.framework + includeInIndex + 0 + isa + PBXFileReference + path + Pods_SwiftExample.framework + sourceTree + BUILT_PRODUCTS_DIR + + 59FCA352113A180EB25892A9 + + buildActionMask + 2147483647 + files + + inputPaths + + isa + PBXShellScriptBuildPhase + name + Copy Pods Resources + outputPaths + + runOnlyForDeploymentPostprocessing + 0 + shellPath + /bin/sh + shellScript + "${SRCROOT}/Pods/Target Support Files/Pods-SwiftExample/Pods-SwiftExample-resources.sh" + + showEnvVarsInLog + 0 + + 6DFE19A7A332221491141B97 + + children + + 51229C5EAF77B085DAE32206 + + isa + PBXGroup + name + Frameworks + sourceTree + <group> + + 8879311461FD4FC08AAFA631 + + buildActionMask + 2147483647 + files + + inputPaths + + isa + PBXShellScriptBuildPhase + name + Embed Pods Frameworks + outputPaths + + runOnlyForDeploymentPostprocessing + 0 + shellPath + /bin/sh + shellScript + "${SRCROOT}/Pods/Target Support Files/Pods-SwiftExample/Pods-SwiftExample-frameworks.sh" + + showEnvVarsInLog + 0 + + AD543A7F7DF54B0939725BC9 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + text.xcconfig + name + Pods-SwiftExample.debug.xcconfig + path + Pods/Target Support Files/Pods-SwiftExample/Pods-SwiftExample.debug.xcconfig + sourceTree + <group> + + C62A82CA8DA9E5F1D6A8C52A + + children + + AD543A7F7DF54B0939725BC9 + 172CACF9AF57CFF29818FFA1 + + isa + PBXGroup + name + Pods + sourceTree + <group> + + DDD8FCF8090FE6D74D6BA115 + + buildActionMask + 2147483647 + files + + inputPaths + + isa + PBXShellScriptBuildPhase + name + Check Pods Manifest.lock + outputPaths + + runOnlyForDeploymentPostprocessing + 0 + shellPath + /bin/sh + shellScript + diff "${PODS_ROOT}/../Podfile.lock" "${PODS_ROOT}/Manifest.lock" > /dev/null +if [[ $? != 0 ]] ; then + cat << EOM +error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation. +EOM + exit 1 +fi + + showEnvVarsInLog + 0 + + F82D09B61CDFBB4900DD74CF + + children + + F82D09C11CDFBB4900DD74CF + F82D09C01CDFBB4900DD74CF + C62A82CA8DA9E5F1D6A8C52A + 6DFE19A7A332221491141B97 + + isa + PBXGroup + sourceTree + <group> + + F82D09B71CDFBB4900DD74CF + + attributes + + LastSwiftUpdateCheck + 0730 + LastUpgradeCheck + 0730 + ORGANIZATIONNAME + MacMeDan + TargetAttributes + + F82D09BE1CDFBB4900DD74CF + + CreatedOnToolsVersion + 7.3.1 + + + + buildConfigurationList + F82D09BA1CDFBB4900DD74CF + compatibilityVersion + Xcode 3.2 + developmentRegion + English + hasScannedForEncodings + 0 + isa + PBXProject + knownRegions + + en + Base + + mainGroup + F82D09B61CDFBB4900DD74CF + productRefGroup + F82D09C01CDFBB4900DD74CF + projectDirPath + + projectReferences + + projectRoot + + targets + + F82D09BE1CDFBB4900DD74CF + + + F82D09BA1CDFBB4900DD74CF + + buildConfigurations + + F82D09CF1CDFBB4900DD74CF + F82D09D01CDFBB4900DD74CF + + defaultConfigurationIsVisible + 0 + defaultConfigurationName + Release + isa + XCConfigurationList + + F82D09BB1CDFBB4900DD74CF + + buildActionMask + 2147483647 + files + + F82D09C51CDFBB4900DD74CF + F82D09C31CDFBB4900DD74CF + + isa + PBXSourcesBuildPhase + runOnlyForDeploymentPostprocessing + 0 + + F82D09BC1CDFBB4900DD74CF + + buildActionMask + 2147483647 + files + + 06CDF8617707BDAD4696C3F1 + + isa + PBXFrameworksBuildPhase + runOnlyForDeploymentPostprocessing + 0 + + F82D09BD1CDFBB4900DD74CF + + buildActionMask + 2147483647 + files + + F82D09CD1CDFBB4900DD74CF + F82D09CA1CDFBB4900DD74CF + F82D09C81CDFBB4900DD74CF + + isa + PBXResourcesBuildPhase + runOnlyForDeploymentPostprocessing + 0 + + F82D09BE1CDFBB4900DD74CF + + buildConfigurationList + F82D09D11CDFBB4900DD74CF + buildPhases + + DDD8FCF8090FE6D74D6BA115 + F82D09BB1CDFBB4900DD74CF + F82D09BC1CDFBB4900DD74CF + F82D09BD1CDFBB4900DD74CF + 8879311461FD4FC08AAFA631 + 59FCA352113A180EB25892A9 + + buildRules + + dependencies + + isa + PBXNativeTarget + name + SwiftExample + productName + SwiftExample + productReference + F82D09BF1CDFBB4900DD74CF + productType + com.apple.product-type.application + + F82D09BF1CDFBB4900DD74CF + + explicitFileType + wrapper.application + includeInIndex + 0 + isa + PBXFileReference + path + SwiftExample.app + sourceTree + BUILT_PRODUCTS_DIR + + F82D09C01CDFBB4900DD74CF + + children + + F82D09BF1CDFBB4900DD74CF + + isa + PBXGroup + name + Products + sourceTree + <group> + + F82D09C11CDFBB4900DD74CF + + children + + F82D09C21CDFBB4900DD74CF + F82D09C41CDFBB4900DD74CF + F82D09C61CDFBB4900DD74CF + F82D09C91CDFBB4900DD74CF + F82D09CB1CDFBB4900DD74CF + F82D09CE1CDFBB4900DD74CF + + isa + PBXGroup + path + SwiftExample + sourceTree + <group> + + F82D09C21CDFBB4900DD74CF + + isa + PBXFileReference + lastKnownFileType + sourcecode.swift + path + AppDelegate.swift + sourceTree + <group> + + F82D09C31CDFBB4900DD74CF + + fileRef + F82D09C21CDFBB4900DD74CF + isa + PBXBuildFile + + F82D09C41CDFBB4900DD74CF + + isa + PBXFileReference + lastKnownFileType + sourcecode.swift + path + ViewController.swift + sourceTree + <group> + + F82D09C51CDFBB4900DD74CF + + fileRef + F82D09C41CDFBB4900DD74CF + isa + PBXBuildFile + + F82D09C61CDFBB4900DD74CF + + children + + F82D09C71CDFBB4900DD74CF + + isa + PBXVariantGroup + name + Main.storyboard + sourceTree + <group> + + F82D09C71CDFBB4900DD74CF + + isa + PBXFileReference + lastKnownFileType + file.storyboard + name + Base + path + Base.lproj/Main.storyboard + sourceTree + <group> + + F82D09C81CDFBB4900DD74CF + + fileRef + F82D09C61CDFBB4900DD74CF + isa + PBXBuildFile + + F82D09C91CDFBB4900DD74CF + + isa + PBXFileReference + lastKnownFileType + folder.assetcatalog + path + Assets.xcassets + sourceTree + <group> + + F82D09CA1CDFBB4900DD74CF + + fileRef + F82D09C91CDFBB4900DD74CF + isa + PBXBuildFile + + F82D09CB1CDFBB4900DD74CF + + children + + F82D09CC1CDFBB4900DD74CF + + isa + PBXVariantGroup + name + LaunchScreen.storyboard + sourceTree + <group> + + F82D09CC1CDFBB4900DD74CF + + isa + PBXFileReference + lastKnownFileType + file.storyboard + name + Base + path + Base.lproj/LaunchScreen.storyboard + sourceTree + <group> + + F82D09CD1CDFBB4900DD74CF + + fileRef + F82D09CB1CDFBB4900DD74CF + isa + PBXBuildFile + + F82D09CE1CDFBB4900DD74CF + + isa + PBXFileReference + lastKnownFileType + text.plist.xml + path + Info.plist + sourceTree + <group> + + F82D09CF1CDFBB4900DD74CF + + 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 + + isa + XCBuildConfiguration + name + Debug + + F82D09D01CDFBB4900DD74CF + + 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 + + isa + XCBuildConfiguration + name + Release + + F82D09D11CDFBB4900DD74CF + + buildConfigurations + + F82D09D21CDFBB4900DD74CF + F82D09D31CDFBB4900DD74CF + + defaultConfigurationIsVisible + 0 + isa + XCConfigurationList + + F82D09D21CDFBB4900DD74CF + + baseConfigurationReference + AD543A7F7DF54B0939725BC9 + buildSettings + + ASSETCATALOG_COMPILER_APPICON_NAME + AppIcon + INFOPLIST_FILE + SwiftExample/Info.plist + LD_RUNPATH_SEARCH_PATHS + $(inherited) @executable_path/Frameworks + PRODUCT_BUNDLE_IDENTIFIER + com.MacMeDan.SwiftExample + PRODUCT_NAME + $(TARGET_NAME) + + isa + XCBuildConfiguration + name + Debug + + F82D09D31CDFBB4900DD74CF + + baseConfigurationReference + 172CACF9AF57CFF29818FFA1 + buildSettings + + ASSETCATALOG_COMPILER_APPICON_NAME + AppIcon + INFOPLIST_FILE + SwiftExample/Info.plist + LD_RUNPATH_SEARCH_PATHS + $(inherited) @executable_path/Frameworks + PRODUCT_BUNDLE_IDENTIFIER + com.MacMeDan.SwiftExample + PRODUCT_NAME + $(TARGET_NAME) + + isa + XCBuildConfiguration + name + Release + + + rootObject + F82D09B71CDFBB4900DD74CF + + diff --git a/SwiftExample/SwiftExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/SwiftExample/SwiftExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 000000000..feaeda14a --- /dev/null +++ b/SwiftExample/SwiftExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/SwiftExample/SwiftExample.xcworkspace/contents.xcworkspacedata b/SwiftExample/SwiftExample.xcworkspace/contents.xcworkspacedata new file mode 100644 index 000000000..238f90ac3 --- /dev/null +++ b/SwiftExample/SwiftExample.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/SwiftExample/SwiftExample/AppDelegate.swift b/SwiftExample/SwiftExample/AppDelegate.swift new file mode 100644 index 000000000..c23912800 --- /dev/null +++ b/SwiftExample/SwiftExample/AppDelegate.swift @@ -0,0 +1,46 @@ +// +// AppDelegate.swift +// SwiftExample +// +// Created by Dan Leonard on 5/8/16. +// Copyright © 2016 MacMeDan. 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. + 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/SwiftExample/SwiftExample/Assets.xcassets/AppIcon.appiconset/Contents.json b/SwiftExample/SwiftExample/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 000000000..36d2c80d8 --- /dev/null +++ b/SwiftExample/SwiftExample/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/SwiftExample/SwiftExample/Base.lproj/LaunchScreen.storyboard b/SwiftExample/SwiftExample/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 000000000..2e721e183 --- /dev/null +++ b/SwiftExample/SwiftExample/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SwiftExample/SwiftExample/Base.lproj/Main.storyboard b/SwiftExample/SwiftExample/Base.lproj/Main.storyboard new file mode 100644 index 000000000..9b477e48c --- /dev/null +++ b/SwiftExample/SwiftExample/Base.lproj/Main.storyboard @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SwiftExample/SwiftExample/Info.plist b/SwiftExample/SwiftExample/Info.plist new file mode 100644 index 000000000..40c6215d9 --- /dev/null +++ b/SwiftExample/SwiftExample/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/SwiftExample/SwiftExample/ViewController.swift b/SwiftExample/SwiftExample/ViewController.swift new file mode 100644 index 000000000..ec3fe387f --- /dev/null +++ b/SwiftExample/SwiftExample/ViewController.swift @@ -0,0 +1,25 @@ +// +// ViewController.swift +// SwiftExample +// +// Created by Dan Leonard on 5/8/16. +// Copyright © 2016 MacMeDan. All rights reserved. +// + +import UIKit + +class ViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + // Do any additional setup after loading the view, typically from a nib. + } + + override func didReceiveMemoryWarning() { + super.didReceiveMemoryWarning() + // Dispose of any resources that can be recreated. + } + + +} +