-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from the-grid/smoother
optional colors, optimize
- Loading branch information
Showing
11 changed files
with
634 additions
and
67 deletions.
There are no files selected for viewing
310 changes: 310 additions & 0 deletions
310
Example/GridLogo-example/GridLogo-example.xcodeproj/project.pbxproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,310 @@ | ||
// !$*UTF8*$! | ||
{ | ||
archiveVersion = 1; | ||
classes = { | ||
}; | ||
objectVersion = 46; | ||
objects = { | ||
|
||
/* Begin PBXBuildFile section */ | ||
76D9B92D1CD47391001A8ADF /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 76D9B92C1CD47391001A8ADF /* AppDelegate.swift */; }; | ||
76D9B92F1CD47391001A8ADF /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 76D9B92E1CD47391001A8ADF /* ViewController.swift */; }; | ||
76D9B9321CD47391001A8ADF /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 76D9B9301CD47391001A8ADF /* Main.storyboard */; }; | ||
76D9B9341CD47391001A8ADF /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 76D9B9331CD47391001A8ADF /* Assets.xcassets */; }; | ||
76D9B9371CD47391001A8ADF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 76D9B9351CD47391001A8ADF /* LaunchScreen.storyboard */; }; | ||
76D9B9421CD4747E001A8ADF /* GridAnimatedLogo.swift in Sources */ = {isa = PBXBuildFile; fileRef = 76D9B93F1CD4747E001A8ADF /* GridAnimatedLogo.swift */; }; | ||
/* End PBXBuildFile section */ | ||
|
||
/* Begin PBXFileReference section */ | ||
76D9B9291CD47391001A8ADF /* GridLogo-Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "GridLogo-Example.app"; sourceTree = BUILT_PRODUCTS_DIR; }; | ||
76D9B92C1CD47391001A8ADF /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; }; | ||
76D9B92E1CD47391001A8ADF /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; }; | ||
76D9B9311CD47391001A8ADF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; }; | ||
76D9B9331CD47391001A8ADF /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; }; | ||
76D9B9361CD47391001A8ADF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; }; | ||
76D9B9381CD47391001A8ADF /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; | ||
76D9B93F1CD4747E001A8ADF /* GridAnimatedLogo.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GridAnimatedLogo.swift; sourceTree = "<group>"; }; | ||
76D9B9401CD4747E001A8ADF /* GridLogo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GridLogo.h; sourceTree = "<group>"; }; | ||
/* End PBXFileReference section */ | ||
|
||
/* Begin PBXFrameworksBuildPhase section */ | ||
76D9B9261CD47391001A8ADF /* Frameworks */ = { | ||
isa = PBXFrameworksBuildPhase; | ||
buildActionMask = 2147483647; | ||
files = ( | ||
); | ||
runOnlyForDeploymentPostprocessing = 0; | ||
}; | ||
/* End PBXFrameworksBuildPhase section */ | ||
|
||
/* Begin PBXGroup section */ | ||
76D9B9201CD47391001A8ADF = { | ||
isa = PBXGroup; | ||
children = ( | ||
76D9B92B1CD47391001A8ADF /* GridLogo-Example */, | ||
76D9B93E1CD4739E001A8ADF /* GridLogo */, | ||
76D9B92A1CD47391001A8ADF /* Products */, | ||
); | ||
sourceTree = "<group>"; | ||
}; | ||
76D9B92A1CD47391001A8ADF /* Products */ = { | ||
isa = PBXGroup; | ||
children = ( | ||
76D9B9291CD47391001A8ADF /* GridLogo-Example.app */, | ||
); | ||
name = Products; | ||
sourceTree = "<group>"; | ||
}; | ||
76D9B92B1CD47391001A8ADF /* GridLogo-Example */ = { | ||
isa = PBXGroup; | ||
children = ( | ||
76D9B92C1CD47391001A8ADF /* AppDelegate.swift */, | ||
76D9B92E1CD47391001A8ADF /* ViewController.swift */, | ||
76D9B9301CD47391001A8ADF /* Main.storyboard */, | ||
76D9B9331CD47391001A8ADF /* Assets.xcassets */, | ||
76D9B9351CD47391001A8ADF /* LaunchScreen.storyboard */, | ||
76D9B9381CD47391001A8ADF /* Info.plist */, | ||
); | ||
path = "GridLogo-Example"; | ||
sourceTree = "<group>"; | ||
}; | ||
76D9B93E1CD4739E001A8ADF /* GridLogo */ = { | ||
isa = PBXGroup; | ||
children = ( | ||
76D9B93F1CD4747E001A8ADF /* GridAnimatedLogo.swift */, | ||
76D9B9401CD4747E001A8ADF /* GridLogo.h */, | ||
); | ||
name = GridLogo; | ||
path = ../../GridLogo; | ||
sourceTree = "<group>"; | ||
}; | ||
/* End PBXGroup section */ | ||
|
||
/* Begin PBXNativeTarget section */ | ||
76D9B9281CD47391001A8ADF /* GridLogo-Example */ = { | ||
isa = PBXNativeTarget; | ||
buildConfigurationList = 76D9B93B1CD47391001A8ADF /* Build configuration list for PBXNativeTarget "GridLogo-Example" */; | ||
buildPhases = ( | ||
76D9B9251CD47391001A8ADF /* Sources */, | ||
76D9B9261CD47391001A8ADF /* Frameworks */, | ||
76D9B9271CD47391001A8ADF /* Resources */, | ||
); | ||
buildRules = ( | ||
); | ||
dependencies = ( | ||
); | ||
name = "GridLogo-Example"; | ||
productName = "GridLogo-Example"; | ||
productReference = 76D9B9291CD47391001A8ADF /* GridLogo-Example.app */; | ||
productType = "com.apple.product-type.application"; | ||
}; | ||
/* End PBXNativeTarget section */ | ||
|
||
/* Begin PBXProject section */ | ||
76D9B9211CD47391001A8ADF /* Project object */ = { | ||
isa = PBXProject; | ||
attributes = { | ||
LastSwiftUpdateCheck = 0730; | ||
LastUpgradeCheck = 0730; | ||
ORGANIZATIONNAME = "The Grid"; | ||
TargetAttributes = { | ||
76D9B9281CD47391001A8ADF = { | ||
CreatedOnToolsVersion = 7.3; | ||
}; | ||
}; | ||
}; | ||
buildConfigurationList = 76D9B9241CD47391001A8ADF /* Build configuration list for PBXProject "GridLogo-Example" */; | ||
compatibilityVersion = "Xcode 3.2"; | ||
developmentRegion = English; | ||
hasScannedForEncodings = 0; | ||
knownRegions = ( | ||
en, | ||
Base, | ||
); | ||
mainGroup = 76D9B9201CD47391001A8ADF; | ||
productRefGroup = 76D9B92A1CD47391001A8ADF /* Products */; | ||
projectDirPath = ""; | ||
projectRoot = ""; | ||
targets = ( | ||
76D9B9281CD47391001A8ADF /* GridLogo-Example */, | ||
); | ||
}; | ||
/* End PBXProject section */ | ||
|
||
/* Begin PBXResourcesBuildPhase section */ | ||
76D9B9271CD47391001A8ADF /* Resources */ = { | ||
isa = PBXResourcesBuildPhase; | ||
buildActionMask = 2147483647; | ||
files = ( | ||
76D9B9371CD47391001A8ADF /* LaunchScreen.storyboard in Resources */, | ||
76D9B9341CD47391001A8ADF /* Assets.xcassets in Resources */, | ||
76D9B9321CD47391001A8ADF /* Main.storyboard in Resources */, | ||
); | ||
runOnlyForDeploymentPostprocessing = 0; | ||
}; | ||
/* End PBXResourcesBuildPhase section */ | ||
|
||
/* Begin PBXSourcesBuildPhase section */ | ||
76D9B9251CD47391001A8ADF /* Sources */ = { | ||
isa = PBXSourcesBuildPhase; | ||
buildActionMask = 2147483647; | ||
files = ( | ||
76D9B92F1CD47391001A8ADF /* ViewController.swift in Sources */, | ||
76D9B92D1CD47391001A8ADF /* AppDelegate.swift in Sources */, | ||
76D9B9421CD4747E001A8ADF /* GridAnimatedLogo.swift in Sources */, | ||
); | ||
runOnlyForDeploymentPostprocessing = 0; | ||
}; | ||
/* End PBXSourcesBuildPhase section */ | ||
|
||
/* Begin PBXVariantGroup section */ | ||
76D9B9301CD47391001A8ADF /* Main.storyboard */ = { | ||
isa = PBXVariantGroup; | ||
children = ( | ||
76D9B9311CD47391001A8ADF /* Base */, | ||
); | ||
name = Main.storyboard; | ||
sourceTree = "<group>"; | ||
}; | ||
76D9B9351CD47391001A8ADF /* LaunchScreen.storyboard */ = { | ||
isa = PBXVariantGroup; | ||
children = ( | ||
76D9B9361CD47391001A8ADF /* Base */, | ||
); | ||
name = LaunchScreen.storyboard; | ||
sourceTree = "<group>"; | ||
}; | ||
/* End PBXVariantGroup section */ | ||
|
||
/* Begin XCBuildConfiguration section */ | ||
76D9B9391CD47391001A8ADF /* 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; | ||
}; | ||
76D9B93A1CD47391001A8ADF /* 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; | ||
}; | ||
76D9B93C1CD47391001A8ADF /* Debug */ = { | ||
isa = XCBuildConfiguration; | ||
buildSettings = { | ||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; | ||
INFOPLIST_FILE = "GridLogo-Example/Info.plist"; | ||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; | ||
PRODUCT_BUNDLE_IDENTIFIER = "io.thegrid.GridLogo-Example"; | ||
PRODUCT_NAME = "$(TARGET_NAME)"; | ||
}; | ||
name = Debug; | ||
}; | ||
76D9B93D1CD47391001A8ADF /* Release */ = { | ||
isa = XCBuildConfiguration; | ||
buildSettings = { | ||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; | ||
INFOPLIST_FILE = "GridLogo-Example/Info.plist"; | ||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; | ||
PRODUCT_BUNDLE_IDENTIFIER = "io.thegrid.GridLogo-Example"; | ||
PRODUCT_NAME = "$(TARGET_NAME)"; | ||
}; | ||
name = Release; | ||
}; | ||
/* End XCBuildConfiguration section */ | ||
|
||
/* Begin XCConfigurationList section */ | ||
76D9B9241CD47391001A8ADF /* Build configuration list for PBXProject "GridLogo-Example" */ = { | ||
isa = XCConfigurationList; | ||
buildConfigurations = ( | ||
76D9B9391CD47391001A8ADF /* Debug */, | ||
76D9B93A1CD47391001A8ADF /* Release */, | ||
); | ||
defaultConfigurationIsVisible = 0; | ||
defaultConfigurationName = Release; | ||
}; | ||
76D9B93B1CD47391001A8ADF /* Build configuration list for PBXNativeTarget "GridLogo-Example" */ = { | ||
isa = XCConfigurationList; | ||
buildConfigurations = ( | ||
76D9B93C1CD47391001A8ADF /* Debug */, | ||
76D9B93D1CD47391001A8ADF /* Release */, | ||
); | ||
defaultConfigurationIsVisible = 0; | ||
}; | ||
/* End XCConfigurationList section */ | ||
}; | ||
rootObject = 76D9B9211CD47391001A8ADF /* Project object */; | ||
} |
7 changes: 7 additions & 0 deletions
7
.../GridLogo-example/GridLogo-example.xcodeproj/project.xcworkspace/contents.xcworkspacedata
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
46 changes: 46 additions & 0 deletions
46
Example/GridLogo-example/GridLogo-example/AppDelegate.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// | ||
// AppDelegate.swift | ||
// GridLogo-Example | ||
// | ||
// Created by Nicholas Velloff on 4/29/16. | ||
// Copyright © 2016 The Grid. 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:. | ||
} | ||
|
||
|
||
} | ||
|
Oops, something went wrong.