Skip to content

Commit

Permalink
added buttons example
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Dahan committed Dec 6, 2015
1 parent cc23cbf commit e1d90ba
Show file tree
Hide file tree
Showing 26 changed files with 621 additions and 1 deletion.
302 changes: 302 additions & 0 deletions Examples/Buttons/Buttons.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,302 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {

/* Begin PBXBuildFile section */
967514141C13FC7A009F455A /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 967514131C13FC7A009F455A /* AppDelegate.swift */; };
967514161C13FC7A009F455A /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 967514151C13FC7A009F455A /* ViewController.swift */; };
9675141B1C13FC7A009F455A /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 9675141A1C13FC7A009F455A /* Assets.xcassets */; };
9675141E1C13FC7A009F455A /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9675141C1C13FC7A009F455A /* LaunchScreen.storyboard */; };
967514261C13FCF4009F455A /* MaterialKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 967514251C13FCF4009F455A /* MaterialKit.framework */; };
967514271C13FCF4009F455A /* MaterialKit.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 967514251C13FCF4009F455A /* MaterialKit.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
/* End PBXBuildFile section */

/* Begin PBXCopyFilesBuildPhase section */
967514281C13FCF5009F455A /* Embed Frameworks */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "";
dstSubfolderSpec = 10;
files = (
967514271C13FCF4009F455A /* MaterialKit.framework in Embed Frameworks */,
);
name = "Embed Frameworks";
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
967514101C13FC7A009F455A /* Buttons.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Buttons.app; sourceTree = BUILT_PRODUCTS_DIR; };
967514131C13FC7A009F455A /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
967514151C13FC7A009F455A /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
9675141A1C13FC7A009F455A /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
9675141D1C13FC7A009F455A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
9675141F1C13FC7A009F455A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
967514251C13FCF4009F455A /* MaterialKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; name = MaterialKit.framework; path = "/Users/danieldahan/Library/Developer/Xcode/DerivedData/MaterialKit-anypxbsecgdqqxevbavirvnffqxd/Build/Products/Debug-iphoneos/MaterialKit.framework"; sourceTree = "<absolute>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
9675140D1C13FC7A009F455A /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
967514261C13FCF4009F455A /* MaterialKit.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
967514071C13FC7A009F455A = {
isa = PBXGroup;
children = (
967514251C13FCF4009F455A /* MaterialKit.framework */,
967514121C13FC7A009F455A /* Buttons */,
967514111C13FC7A009F455A /* Products */,
);
sourceTree = "<group>";
};
967514111C13FC7A009F455A /* Products */ = {
isa = PBXGroup;
children = (
967514101C13FC7A009F455A /* Buttons.app */,
);
name = Products;
sourceTree = "<group>";
};
967514121C13FC7A009F455A /* Buttons */ = {
isa = PBXGroup;
children = (
967514131C13FC7A009F455A /* AppDelegate.swift */,
967514151C13FC7A009F455A /* ViewController.swift */,
9675141A1C13FC7A009F455A /* Assets.xcassets */,
9675141C1C13FC7A009F455A /* LaunchScreen.storyboard */,
9675141F1C13FC7A009F455A /* Info.plist */,
);
path = Buttons;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
9675140F1C13FC7A009F455A /* Buttons */ = {
isa = PBXNativeTarget;
buildConfigurationList = 967514221C13FC7A009F455A /* Build configuration list for PBXNativeTarget "Buttons" */;
buildPhases = (
9675140C1C13FC7A009F455A /* Sources */,
9675140D1C13FC7A009F455A /* Frameworks */,
9675140E1C13FC7A009F455A /* Resources */,
967514281C13FCF5009F455A /* Embed Frameworks */,
);
buildRules = (
);
dependencies = (
);
name = Buttons;
productName = Buttons;
productReference = 967514101C13FC7A009F455A /* Buttons.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
967514081C13FC7A009F455A /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0710;
LastUpgradeCheck = 0710;
ORGANIZATIONNAME = "CosmicMind, Inc.";
TargetAttributes = {
9675140F1C13FC7A009F455A = {
CreatedOnToolsVersion = 7.1.1;
};
};
};
buildConfigurationList = 9675140B1C13FC7A009F455A /* Build configuration list for PBXProject "Buttons" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 967514071C13FC7A009F455A;
productRefGroup = 967514111C13FC7A009F455A /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
9675140F1C13FC7A009F455A /* Buttons */,
);
};
/* End PBXProject section */

/* Begin PBXResourcesBuildPhase section */
9675140E1C13FC7A009F455A /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
9675141E1C13FC7A009F455A /* LaunchScreen.storyboard in Resources */,
9675141B1C13FC7A009F455A /* Assets.xcassets in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
9675140C1C13FC7A009F455A /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
967514161C13FC7A009F455A /* ViewController.swift in Sources */,
967514141C13FC7A009F455A /* AppDelegate.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXVariantGroup section */
9675141C1C13FC7A009F455A /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
children = (
9675141D1C13FC7A009F455A /* Base */,
);
name = LaunchScreen.storyboard;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */

/* Begin XCBuildConfiguration section */
967514201C13FC7A009F455A /* 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;
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 = 8.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
967514211C13FC7A009F455A /* 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.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
967514231C13FC7A009F455A /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = Buttons/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = io.cosmicmind.Buttons;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Debug;
};
967514241C13FC7A009F455A /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = Buttons/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = io.cosmicmind.Buttons;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
9675140B1C13FC7A009F455A /* Build configuration list for PBXProject "Buttons" */ = {
isa = XCConfigurationList;
buildConfigurations = (
967514201C13FC7A009F455A /* Debug */,
967514211C13FC7A009F455A /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
967514221C13FC7A009F455A /* Build configuration list for PBXNativeTarget "Buttons" */ = {
isa = XCConfigurationList;
buildConfigurations = (
967514231C13FC7A009F455A /* Debug */,
967514241C13FC7A009F455A /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 967514081C13FC7A009F455A /* Project object */;
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 39 additions & 0 deletions Examples/Buttons/Buttons/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io> and other CosmicMind contributors
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published
// by the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program located at the root of the software package
// in a file called LICENSE. If not, see <http://www.gnu.org/licenses/>.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
window = UIWindow(frame: UIScreen.mainScreen().bounds)
window!.rootViewController = ViewController()
window!.makeKeyAndVisible()
return true
}

func applicationWillResignActive(application: UIApplication) {}
func applicationDidEnterBackground(application: UIApplication) {}
func applicationWillEnterForeground(application: UIApplication) {}
func applicationDidBecomeActive(application: UIApplication) {}
func applicationWillTerminate(application: UIApplication) {}

}

Loading

0 comments on commit e1d90ba

Please sign in to comment.