Skip to content

Commit

Permalink
Added Swift demo project
Browse files Browse the repository at this point in the history
  • Loading branch information
u10int committed May 10, 2015
1 parent aa09d3e commit c30f131
Show file tree
Hide file tree
Showing 14 changed files with 738 additions and 24 deletions.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
//
// Use this file to import your target's public headers that you would like to expose to Swift.
//

#import "URBMediaFocusViewController.h"
Original file line number Diff line number Diff line change
@@ -0,0 +1,329 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {

/* Begin PBXBuildFile section */
2B4C5B6D1ADB34B30039599D /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2B4C5B6C1ADB34B30039599D /* AppDelegate.swift */; };
2B4C5B6F1ADB34B30039599D /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2B4C5B6E1ADB34B30039599D /* ViewController.swift */; };
2B4C5B741ADB34B30039599D /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 2B4C5B731ADB34B30039599D /* Images.xcassets */; };
2B4C5B771ADB34B30039599D /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 2B4C5B751ADB34B30039599D /* LaunchScreen.xib */; };
2B4C5B8F1ADB35730039599D /* URBMediaFocusViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2B4C5B8E1ADB35730039599D /* URBMediaFocusViewController.m */; };
2B4C5B971ADB3F300039599D /* animated_thumb.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 2B4C5B921ADB3F300039599D /* animated_thumb.jpg */; };
2B4C5B981ADB3F300039599D /* panorama.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 2B4C5B931ADB3F300039599D /* panorama.jpg */; };
2B4C5B991ADB3F300039599D /* panorama_vert.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 2B4C5B941ADB3F300039599D /* panorama_vert.jpg */; };
2B4C5B9A1ADB3F300039599D /* raceforfood.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 2B4C5B951ADB3F300039599D /* raceforfood.jpg */; };
2B4C5B9B1ADB3F300039599D /* seattle01.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 2B4C5B961ADB3F300039599D /* seattle01.jpg */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
2B4C5B671ADB34B30039599D /* URBMediaFocusViewControllerDemo-Swift.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "URBMediaFocusViewControllerDemo-Swift.app"; sourceTree = BUILT_PRODUCTS_DIR; };
2B4C5B6B1ADB34B30039599D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
2B4C5B6C1ADB34B30039599D /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
2B4C5B6E1ADB34B30039599D /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
2B4C5B731ADB34B30039599D /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
2B4C5B761ADB34B30039599D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = "<group>"; };
2B4C5B8C1ADB35720039599D /* URBMediaFocusViewControllerDemo-Swift-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "URBMediaFocusViewControllerDemo-Swift-Bridging-Header.h"; sourceTree = SOURCE_ROOT; };
2B4C5B8D1ADB35730039599D /* URBMediaFocusViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = URBMediaFocusViewController.h; path = ../../URBMediaFocusViewController.h; sourceTree = "<group>"; };
2B4C5B8E1ADB35730039599D /* URBMediaFocusViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = URBMediaFocusViewController.m; path = ../../URBMediaFocusViewController.m; sourceTree = "<group>"; };
2B4C5B921ADB3F300039599D /* animated_thumb.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = animated_thumb.jpg; sourceTree = "<group>"; };
2B4C5B931ADB3F300039599D /* panorama.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = panorama.jpg; sourceTree = "<group>"; };
2B4C5B941ADB3F300039599D /* panorama_vert.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = panorama_vert.jpg; sourceTree = "<group>"; };
2B4C5B951ADB3F300039599D /* raceforfood.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = raceforfood.jpg; sourceTree = "<group>"; };
2B4C5B961ADB3F300039599D /* seattle01.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = seattle01.jpg; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
2B4C5B641ADB34B30039599D /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
2B4C5B5E1ADB34B30039599D = {
isa = PBXGroup;
children = (
2B4C5B8D1ADB35730039599D /* URBMediaFocusViewController.h */,
2B4C5B8E1ADB35730039599D /* URBMediaFocusViewController.m */,
2B4C5B691ADB34B30039599D /* URBMediaFocusViewControllerDemo-Swift */,
2B4C5B681ADB34B30039599D /* Products */,
);
sourceTree = "<group>";
};
2B4C5B681ADB34B30039599D /* Products */ = {
isa = PBXGroup;
children = (
2B4C5B671ADB34B30039599D /* URBMediaFocusViewControllerDemo-Swift.app */,
);
name = Products;
sourceTree = "<group>";
};
2B4C5B691ADB34B30039599D /* URBMediaFocusViewControllerDemo-Swift */ = {
isa = PBXGroup;
children = (
2B4C5B8C1ADB35720039599D /* URBMediaFocusViewControllerDemo-Swift-Bridging-Header.h */,
2B4C5B6C1ADB34B30039599D /* AppDelegate.swift */,
2B4C5B6E1ADB34B30039599D /* ViewController.swift */,
2B4C5B731ADB34B30039599D /* Images.xcassets */,
2B4C5B751ADB34B30039599D /* LaunchScreen.xib */,
2B4C5B911ADB3F300039599D /* Resources */,
2B4C5B6A1ADB34B30039599D /* Supporting Files */,
);
path = "URBMediaFocusViewControllerDemo-Swift";
sourceTree = "<group>";
};
2B4C5B6A1ADB34B30039599D /* Supporting Files */ = {
isa = PBXGroup;
children = (
2B4C5B6B1ADB34B30039599D /* Info.plist */,
);
name = "Supporting Files";
sourceTree = "<group>";
};
2B4C5B911ADB3F300039599D /* Resources */ = {
isa = PBXGroup;
children = (
2B4C5B921ADB3F300039599D /* animated_thumb.jpg */,
2B4C5B931ADB3F300039599D /* panorama.jpg */,
2B4C5B941ADB3F300039599D /* panorama_vert.jpg */,
2B4C5B951ADB3F300039599D /* raceforfood.jpg */,
2B4C5B961ADB3F300039599D /* seattle01.jpg */,
);
name = Resources;
path = ../../Resources;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
2B4C5B661ADB34B30039599D /* URBMediaFocusViewControllerDemo-Swift */ = {
isa = PBXNativeTarget;
buildConfigurationList = 2B4C5B861ADB34B30039599D /* Build configuration list for PBXNativeTarget "URBMediaFocusViewControllerDemo-Swift" */;
buildPhases = (
2B4C5B631ADB34B30039599D /* Sources */,
2B4C5B641ADB34B30039599D /* Frameworks */,
2B4C5B651ADB34B30039599D /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = "URBMediaFocusViewControllerDemo-Swift";
productName = "URBMediaFocusViewControllerDemo-Swift";
productReference = 2B4C5B671ADB34B30039599D /* URBMediaFocusViewControllerDemo-Swift.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
2B4C5B5F1ADB34B30039599D /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0630;
ORGANIZATIONNAME = "Urban10 Interactive, LLC";
TargetAttributes = {
2B4C5B661ADB34B30039599D = {
CreatedOnToolsVersion = 6.3;
};
};
};
buildConfigurationList = 2B4C5B621ADB34B30039599D /* Build configuration list for PBXProject "URBMediaFocusViewControllerDemo-Swift" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 2B4C5B5E1ADB34B30039599D;
productRefGroup = 2B4C5B681ADB34B30039599D /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
2B4C5B661ADB34B30039599D /* URBMediaFocusViewControllerDemo-Swift */,
);
};
/* End PBXProject section */

/* Begin PBXResourcesBuildPhase section */
2B4C5B651ADB34B30039599D /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
2B4C5B9A1ADB3F300039599D /* raceforfood.jpg in Resources */,
2B4C5B771ADB34B30039599D /* LaunchScreen.xib in Resources */,
2B4C5B741ADB34B30039599D /* Images.xcassets in Resources */,
2B4C5B991ADB3F300039599D /* panorama_vert.jpg in Resources */,
2B4C5B981ADB3F300039599D /* panorama.jpg in Resources */,
2B4C5B971ADB3F300039599D /* animated_thumb.jpg in Resources */,
2B4C5B9B1ADB3F300039599D /* seattle01.jpg in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
2B4C5B631ADB34B30039599D /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
2B4C5B6F1ADB34B30039599D /* ViewController.swift in Sources */,
2B4C5B8F1ADB35730039599D /* URBMediaFocusViewController.m in Sources */,
2B4C5B6D1ADB34B30039599D /* AppDelegate.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXVariantGroup section */
2B4C5B751ADB34B30039599D /* LaunchScreen.xib */ = {
isa = PBXVariantGroup;
children = (
2B4C5B761ADB34B30039599D /* Base */,
);
name = LaunchScreen.xib;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */

/* Begin XCBuildConfiguration section */
2B4C5B841ADB34B30039599D /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
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_STRICT_OBJC_MSGSEND = 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_SYMBOLS_PRIVATE_EXTERN = NO;
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 = 8.3;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
2B4C5B851ADB34B30039599D /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
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 = 8.3;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
2B4C5B871ADB34B30039599D /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
INFOPLIST_FILE = "URBMediaFocusViewControllerDemo-Swift/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "URBMediaFocusViewControllerDemo-Swift-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
};
2B4C5B881ADB34B30039599D /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
INFOPLIST_FILE = "URBMediaFocusViewControllerDemo-Swift/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "URBMediaFocusViewControllerDemo-Swift-Bridging-Header.h";
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
2B4C5B621ADB34B30039599D /* Build configuration list for PBXProject "URBMediaFocusViewControllerDemo-Swift" */ = {
isa = XCConfigurationList;
buildConfigurations = (
2B4C5B841ADB34B30039599D /* Debug */,
2B4C5B851ADB34B30039599D /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
2B4C5B861ADB34B30039599D /* Build configuration list for PBXNativeTarget "URBMediaFocusViewControllerDemo-Swift" */ = {
isa = XCConfigurationList;
buildConfigurations = (
2B4C5B871ADB34B30039599D /* Debug */,
2B4C5B881ADB34B30039599D /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 2B4C5B5F1ADB34B30039599D /* Project object */;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
//
// AppDelegate.swift
// URBMediaFocusViewControllerDemo-Swift
//
// Created by Nicholas Shipes on 4/12/15.
// Copyright (c) 2015 Urban10 Interactive, LLC. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

var window: UIWindow?


func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {

self.window = UIWindow(frame: UIScreen.mainScreen().bounds)

let controller: UIViewController = ViewController(nibName: nil, bundle: nil)
let navController: UINavigationController = UINavigationController(rootViewController: controller)
self.window?.rootViewController = navController

self.window?.backgroundColor = UIColor.whiteColor()
self.window?.makeKeyAndVisible()

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:.
}


}

Loading

0 comments on commit c30f131

Please sign in to comment.