Commit d00ea0cb by Daniel Dahan

Merge pull request #287 from ramonvic/material-icons2

Added new icons to MaterialIcon
parents 356e4fab 52f9dc91
...@@ -38,6 +38,9 @@ ...@@ -38,6 +38,9 @@
location = "group:Programmatic/MaterialSwitch/MaterialSwitch.xcodeproj"> location = "group:Programmatic/MaterialSwitch/MaterialSwitch.xcodeproj">
</FileRef> </FileRef>
<FileRef <FileRef
location = "group:Programmatic/MaterialIcon/MaterialIcon.xcodeproj">
</FileRef>
<FileRef
location = "group:Programmatic/MaterialCollectionView/MaterialCollectionView.xcodeproj"> location = "group:Programmatic/MaterialCollectionView/MaterialCollectionView.xcodeproj">
</FileRef> </FileRef>
<FileRef <FileRef
......
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {
/* Begin PBXBuildFile section */
96A71E6C1C6FA6D500C0C4AE /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 96A71E6B1C6FA6D500C0C4AE /* AppDelegate.swift */; };
96A71E6E1C6FA6D500C0C4AE /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 96A71E6D1C6FA6D500C0C4AE /* ViewController.swift */; };
96A71E731C6FA6D500C0C4AE /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 96A71E721C6FA6D500C0C4AE /* Assets.xcassets */; };
96A71E761C6FA6D500C0C4AE /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 96A71E741C6FA6D500C0C4AE /* LaunchScreen.storyboard */; };
F6949FC01CB53676000E4C23 /* Material.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F6949FBD1CB53666000E4C23 /* Material.framework */; };
F6949FC11CB53676000E4C23 /* Material.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = F6949FBD1CB53666000E4C23 /* Material.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
/* End PBXBuildFile section */
/* Begin PBXCopyFilesBuildPhase section */
F6949FC21CB53676000E4C23 /* Embed Frameworks */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "";
dstSubfolderSpec = 10;
files = (
F6949FC11CB53676000E4C23 /* Material.framework in Embed Frameworks */,
);
name = "Embed Frameworks";
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
96A71E681C6FA6D500C0C4AE /* MaterialIcon.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MaterialIcon.app; sourceTree = BUILT_PRODUCTS_DIR; };
96A71E6B1C6FA6D500C0C4AE /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
96A71E6D1C6FA6D500C0C4AE /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
96A71E721C6FA6D500C0C4AE /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
96A71E751C6FA6D500C0C4AE /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
96A71E771C6FA6D500C0C4AE /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
F6949FBB1CB53635000E4C23 /* Material.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Material.framework; path = "../../../build/Debug-iphoneos/Material.framework"; sourceTree = "<group>"; };
F6949FBD1CB53666000E4C23 /* Material.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; name = Material.framework; path = "/Users/ramon/Library/Developer/Xcode/DerivedData/Material-himrdtrjxqulxbgtyvxqqgkjdthx/Build/Products/Debug-iphonesimulator/Material.framework"; sourceTree = "<absolute>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
96A71E651C6FA6D500C0C4AE /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
F6949FC01CB53676000E4C23 /* Material.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
96A71E5F1C6FA6D500C0C4AE = {
isa = PBXGroup;
children = (
F6949FBD1CB53666000E4C23 /* Material.framework */,
F6949FBB1CB53635000E4C23 /* Material.framework */,
96A71E6A1C6FA6D500C0C4AE /* MaterialIcon */,
96A71E691C6FA6D500C0C4AE /* Products */,
);
sourceTree = "<group>";
};
96A71E691C6FA6D500C0C4AE /* Products */ = {
isa = PBXGroup;
children = (
96A71E681C6FA6D500C0C4AE /* MaterialIcon.app */,
);
name = Products;
sourceTree = "<group>";
};
96A71E6A1C6FA6D500C0C4AE /* MaterialIcon */ = {
isa = PBXGroup;
children = (
96A71E6B1C6FA6D500C0C4AE /* AppDelegate.swift */,
96A71E6D1C6FA6D500C0C4AE /* ViewController.swift */,
96A71E721C6FA6D500C0C4AE /* Assets.xcassets */,
96A71E741C6FA6D500C0C4AE /* LaunchScreen.storyboard */,
96A71E771C6FA6D500C0C4AE /* Info.plist */,
);
path = MaterialIcon;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
96A71E671C6FA6D500C0C4AE /* MaterialIcon */ = {
isa = PBXNativeTarget;
buildConfigurationList = 96A71E7A1C6FA6D500C0C4AE /* Build configuration list for PBXNativeTarget "MaterialIcon" */;
buildPhases = (
96A71E641C6FA6D500C0C4AE /* Sources */,
96A71E651C6FA6D500C0C4AE /* Frameworks */,
96A71E661C6FA6D500C0C4AE /* Resources */,
F6949FC21CB53676000E4C23 /* Embed Frameworks */,
);
buildRules = (
);
dependencies = (
);
name = MaterialIcon;
productName = MaterialIcon;
productReference = 96A71E681C6FA6D500C0C4AE /* MaterialIcon.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
96A71E601C6FA6D500C0C4AE /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0720;
LastUpgradeCheck = 0720;
ORGANIZATIONNAME = "CosmicMind, Inc.";
TargetAttributes = {
96A71E671C6FA6D500C0C4AE = {
CreatedOnToolsVersion = 7.2;
};
};
};
buildConfigurationList = 96A71E631C6FA6D500C0C4AE /* Build configuration list for PBXProject "MaterialIcon" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 96A71E5F1C6FA6D500C0C4AE;
productRefGroup = 96A71E691C6FA6D500C0C4AE /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
96A71E671C6FA6D500C0C4AE /* MaterialIcon */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
96A71E661C6FA6D500C0C4AE /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
96A71E761C6FA6D500C0C4AE /* LaunchScreen.storyboard in Resources */,
96A71E731C6FA6D500C0C4AE /* Assets.xcassets in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
96A71E641C6FA6D500C0C4AE /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
96A71E6E1C6FA6D500C0C4AE /* ViewController.swift in Sources */,
96A71E6C1C6FA6D500C0C4AE /* AppDelegate.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXVariantGroup section */
96A71E741C6FA6D500C0C4AE /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
children = (
96A71E751C6FA6D500C0C4AE /* Base */,
);
name = LaunchScreen.storyboard;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */
/* Begin XCBuildConfiguration section */
96A71E781C6FA6D500C0C4AE /* 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;
};
96A71E791C6FA6D500C0C4AE /* 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;
};
96A71E7B1C6FA6D500C0C4AE /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = MaterialIcon/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = io.cosmicmind.MaterialIcon;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Debug;
};
96A71E7C1C6FA6D500C0C4AE /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = MaterialIcon/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = io.cosmicmind.MaterialIcon;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
96A71E631C6FA6D500C0C4AE /* Build configuration list for PBXProject "MaterialIcon" */ = {
isa = XCConfigurationList;
buildConfigurations = (
96A71E781C6FA6D500C0C4AE /* Debug */,
96A71E791C6FA6D500C0C4AE /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
96A71E7A1C6FA6D500C0C4AE /* Build configuration list for PBXNativeTarget "MaterialIcon" */ = {
isa = XCConfigurationList;
buildConfigurations = (
96A71E7B1C6FA6D500C0C4AE /* Debug */,
96A71E7C1C6FA6D500C0C4AE /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 96A71E601C6FA6D500C0C4AE /* Project object */;
}
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:MaterialIcon.xcodeproj">
</FileRef>
</Workspace>
/*
* Copyright (C) 2015 - 2016, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.io>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* * Neither the name of Material nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
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) {
// 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:.
}
}
{
"images" : [
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "Material-Icon-29@2x.png",
"scale" : "2x"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "Material-Icon-29@3x.png",
"scale" : "3x"
},
{
"size" : "40x40",
"idiom" : "iphone",
"filename" : "Material-Icon-40@2x-1.png",
"scale" : "2x"
},
{
"size" : "40x40",
"idiom" : "iphone",
"filename" : "Material-Icon-40@3x.png",
"scale" : "3x"
},
{
"size" : "60x60",
"idiom" : "iphone",
"filename" : "Material-Icon-60@2x.png",
"scale" : "2x"
},
{
"size" : "60x60",
"idiom" : "iphone",
"filename" : "Material-Icon-60@3x.png",
"scale" : "3x"
},
{
"size" : "29x29",
"idiom" : "ipad",
"filename" : "Material-Icon-29.png",
"scale" : "1x"
},
{
"size" : "29x29",
"idiom" : "ipad",
"filename" : "Material-Icon-29@2x-1.png",
"scale" : "2x"
},
{
"size" : "40x40",
"idiom" : "ipad",
"filename" : "Material-Icon-40.png",
"scale" : "1x"
},
{
"size" : "40x40",
"idiom" : "ipad",
"filename" : "Material-Icon-40@2x.png",
"scale" : "2x"
},
{
"size" : "76x76",
"idiom" : "ipad",
"filename" : "Material-Icon-76.png",
"scale" : "1x"
},
{
"size" : "76x76",
"idiom" : "ipad",
"filename" : "Material-Icon-76@2x.png",
"scale" : "2x"
},
{
"size" : "83.5x83.5",
"idiom" : "ipad",
"filename" : "Material-Icon-83.5@2x.png",
"scale" : "2x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="8150" systemVersion="15A204g" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" initialViewController="01J-lp-oVM">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="8122"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="EHf-IW-A2E">
<objects>
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="Llm-lL-Icb"/>
<viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<animations/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="53" y="375"/>
</scene>
</scenes>
</document>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6211" systemVersion="14A298i" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6204"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="tne-QT-ifu">
<objects>
<viewController id="BYZ-38-t0r" customClass="ViewController" customModuleProvider="target" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
<viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
</objects>
</scene>
</scenes>
</document>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</dict>
</plist>
/*
* Copyright (C) 2015 - 2016, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.io>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* * Neither the name of GraphKit nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*
The following is an example of setting a UITableView as the detailView for a
CardView.
*/
import UIKit
import Material
private struct Item {
var name: String
var mdIcon:UIImage?
var cmIcon:UIImage?
}
extension MaterialIcon {
init(){}
}
class ViewController: UIViewController {
/// A tableView used to display Bond entries.
private let tableView: UITableView = UITableView()
/// A list of all the Icons.
private var icons: Array<Item> = Array<Item>()
override func viewDidLoad() {
super.viewDidLoad()
prepareView()
prepareItems()
prepareTableView()
}
/// Prepares view.
private func prepareView() {
view.backgroundColor = MaterialColor.white
}
/// Prepares the items Array.
private func prepareItems() {
icons.append(Item(name: "add", mdIcon:MaterialIcon.add, cmIcon: MaterialIcon.cm.add))
icons.append(Item(name: "addCircle", mdIcon:MaterialIcon.addCircle, cmIcon: MaterialIcon.cm.addCircle))
icons.append(Item(name: "addCircleOutline", mdIcon:MaterialIcon.addCircleOutline, cmIcon: MaterialIcon.cm.addCircleOutline))
icons.append(Item(name: "arrowBack", mdIcon:MaterialIcon.arrowBack, cmIcon: MaterialIcon.cm.arrowBack))
icons.append(Item(name: "arrowDownward", mdIcon:MaterialIcon.arrowDownward, cmIcon: MaterialIcon.cm.arrowDownward))
icons.append(Item(name: "audio", mdIcon:MaterialIcon.audio, cmIcon: MaterialIcon.cm.audio))
icons.append(Item(name: "clear", mdIcon:MaterialIcon.clear, cmIcon: MaterialIcon.cm.clear))
icons.append(Item(name: "close", mdIcon:MaterialIcon.close, cmIcon: MaterialIcon.cm.close))
icons.append(Item(name: "edit", mdIcon:MaterialIcon.edit, cmIcon: MaterialIcon.cm.edit))
icons.append(Item(name: "history", mdIcon:MaterialIcon.history, cmIcon: MaterialIcon.cm.history))
icons.append(Item(name: "image", mdIcon:MaterialIcon.image, cmIcon: MaterialIcon.cm.image))
icons.append(Item(name: "menu", mdIcon:MaterialIcon.menu, cmIcon: MaterialIcon.cm.menu))
icons.append(Item(name: "moreVertical", mdIcon:MaterialIcon.moreHorizontal, cmIcon: MaterialIcon.cm.moreHorizontal))
icons.append(Item(name: "moreHorizontal", mdIcon:MaterialIcon.moreVertical, cmIcon: MaterialIcon.cm.moreVertical))
icons.append(Item(name: "movie", mdIcon:MaterialIcon.movie, cmIcon: MaterialIcon.cm.movie))
icons.append(Item(name: "pen", mdIcon:MaterialIcon.pen, cmIcon: MaterialIcon.cm.pen))
icons.append(Item(name: "place", mdIcon:MaterialIcon.place, cmIcon: MaterialIcon.cm.place))
icons.append(Item(name: "photoCamera", mdIcon:MaterialIcon.photoCamera, cmIcon: MaterialIcon.cm.photoCamera))
icons.append(Item(name: "photoLibrary", mdIcon:MaterialIcon.photoLibrary, cmIcon: MaterialIcon.cm.photoLibrary))
icons.append(Item(name: "search", mdIcon:MaterialIcon.search, cmIcon: MaterialIcon.cm.search))
icons.append(Item(name: "settings", mdIcon:MaterialIcon.settings, cmIcon: MaterialIcon.cm.settings))
icons.append(Item(name: "share", mdIcon:MaterialIcon.share, cmIcon: MaterialIcon.cm.share))
icons.append(Item(name: "star", mdIcon:MaterialIcon.star, cmIcon: MaterialIcon.cm.star))
icons.append(Item(name: "starBorder", mdIcon:MaterialIcon.starBorder, cmIcon: MaterialIcon.cm.starBorder))
icons.append(Item(name: "starHalf", mdIcon:MaterialIcon.starHalf, cmIcon: MaterialIcon.cm.starHalf))
icons.append(Item(name: "videocam", mdIcon:MaterialIcon.videocam, cmIcon: MaterialIcon.cm.videocam))
}
/// Prepares the tableView.
private func prepareTableView() {
tableView.registerClass(MaterialTableViewCell.self, forCellReuseIdentifier: "Cell")
tableView.dataSource = self
tableView.delegate = self
tableView.translatesAutoresizingMaskIntoConstraints = false
view.addSubview(tableView)
MaterialLayout.alignToParent(view, child: tableView, top: 20, left: 0, bottom: 0, right: 0)
}
private func image(iconName:String!) -> UIImage? {
return nil
}
}
/// TableViewDataSource methods.
extension ViewController: UITableViewDataSource {
/// Determines the number of rows in the tableView.
func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return icons.count;
}
/// Returns the number of sections.
func numberOfSectionsInTableView(tableView: UITableView) -> Int {
return 1
}
/// Prepares the cells within the tableView.
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
let cell: MaterialTableViewCell = MaterialTableViewCell(style: .Subtitle, reuseIdentifier: "Cell")
let item: Item = icons[indexPath.row]
cell.selectionStyle = .None
cell.textLabel!.text = item.name
cell.textLabel!.font = RobotoFont.regular
cell.textLabel?.textAlignment = .Center
cell.imageView!.image = item.mdIcon
cell.imageView!.contentMode = .Center
let imageView = UIImageView(frame: CGRect(x: 0, y: 0, width: 24, height: 24))
imageView.image = item.cmIcon
cell.accessoryView = imageView
return cell
}
}
/// UITableViewDelegate methods.
extension ViewController: UITableViewDelegate {
/// Sets the tableView cell height.
func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -> CGFloat {
return 44
}
func tableView(tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
return 40
}
func tableView(tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
let v = UIView()
v.backgroundColor = MaterialColor.grey.lighten4
let leftLabel = UILabel()
leftLabel.grid.columns = 6
leftLabel.text = "Google Icons"
let rightLabel = UILabel()
rightLabel.grid.columns = 6
rightLabel.text = "CosmicMind Icons"
rightLabel.textAlignment = .Right
v.addSubview(leftLabel)
v.addSubview(rightLabel)
v.grid.views = [leftLabel, rightLabel]
return v
}
func tableView(tableView: UITableView, willDisplayHeaderView view: UIView, forSection section: Int) {
view.grid.reloadLayout()
}
}

333 Bytes | W: | H:

185 Bytes | W: | H:

Sources/Assets.xcassets/cm_image_white.imageset/cm_image_white.png
Sources/Assets.xcassets/cm_image_white.imageset/cm_image_white.png
Sources/Assets.xcassets/cm_image_white.imageset/cm_image_white.png
Sources/Assets.xcassets/cm_image_white.imageset/cm_image_white.png
  • 2-up
  • Swipe
  • Onion skin
{
"images": [
{
"filename": "ic_add_circle_outline_white.png",
"idiom": "universal",
"scale": "1x"
},
{
"filename": "ic_add_circle_outline_white_2x.png",
"idiom": "universal",
"scale": "2x"
},
{
"filename": "ic_add_circle_outline_white_3x.png",
"idiom": "universal",
"scale": "3x"
}
],
"info": {
"author": "xcode",
"version": 1
}
}
{
"images": [
{
"filename": "ic_add_circle_white.png",
"idiom": "universal",
"scale": "1x"
},
{
"filename": "ic_add_circle_white_2x.png",
"idiom": "universal",
"scale": "2x"
},
{
"filename": "ic_add_circle_white_3x.png",
"idiom": "universal",
"scale": "3x"
}
],
"info": {
"author": "xcode",
"version": 1
}
}
{ {
"images" : [ "images": [
{ {
"idiom" : "universal", "filename": "ic_add_white.png",
"filename" : "ic_add_white.png", "idiom": "universal",
"scale" : "1x" "scale": "1x"
}, },
{ {
"idiom" : "universal", "filename": "ic_add_white_2x.png",
"filename" : "ic_add_white_2x.png", "idiom": "universal",
"scale" : "2x" "scale": "2x"
}, },
{ {
"idiom" : "universal", "filename": "ic_add_white_3x.png",
"filename" : "ic_add_white_3x.png", "idiom": "universal",
"scale" : "3x" "scale": "3x"
} }
], ],
"info" : { "info": {
"version" : 1, "author": "xcode",
"author" : "xcode" "version": 1
} }
} }
{ {
"images" : [ "images": [
{ {
"idiom" : "universal", "filename": "ic_arrow_back_white.png",
"filename" : "ic_arrow_back_white.png", "idiom": "universal",
"scale" : "1x" "scale": "1x"
}, },
{ {
"idiom" : "universal", "filename": "ic_arrow_back_white_2x.png",
"filename" : "ic_arrow_back_white_2x.png", "idiom": "universal",
"scale" : "2x" "scale": "2x"
}, },
{ {
"idiom" : "universal", "filename": "ic_arrow_back_white_3x.png",
"filename" : "ic_arrow_back_white_3x.png", "idiom": "universal",
"scale" : "3x" "scale": "3x"
} }
], ],
"info" : { "info": {
"version" : 1, "author": "xcode",
"author" : "xcode" "version": 1
} }
} }
{ {
"images" : [ "images": [
{ {
"idiom" : "universal", "filename": "ic_arrow_downward_white.png",
"filename" : "ic_arrow_downward_white.png", "idiom": "universal",
"scale" : "1x" "scale": "1x"
}, },
{ {
"idiom" : "universal", "filename": "ic_arrow_downward_white_2x.png",
"filename" : "ic_arrow_downward_white_2x.png", "idiom": "universal",
"scale" : "2x" "scale": "2x"
}, },
{ {
"idiom" : "universal", "filename": "ic_arrow_downward_white_3x.png",
"filename" : "ic_arrow_downward_white_3x.png", "idiom": "universal",
"scale" : "3x" "scale": "3x"
} }
], ],
"info" : { "info": {
"version" : 1, "author": "xcode",
"author" : "xcode" "version": 1
} }
} }
{
"images": [
{
"filename": "ic_audiotrack_white.png",
"idiom": "universal",
"scale": "1x"
},
{
"filename": "ic_audiotrack_white_2x.png",
"idiom": "universal",
"scale": "2x"
},
{
"filename": "ic_audiotrack_white_3x.png",
"idiom": "universal",
"scale": "3x"
}
],
"info": {
"author": "xcode",
"version": 1
}
}
{
"images": [
{
"filename": "ic_edit_white.png",
"idiom": "universal",
"scale": "1x"
},
{
"filename": "ic_edit_white_2x.png",
"idiom": "universal",
"scale": "2x"
},
{
"filename": "ic_edit_white_3x.png",
"idiom": "universal",
"scale": "3x"
}
],
"info": {
"author": "xcode",
"version": 1
}
}
{
"images": [
{
"filename": "ic_history_white.png",
"idiom": "universal",
"scale": "1x"
},
{
"filename": "ic_history_white_2x.png",
"idiom": "universal",
"scale": "2x"
},
{
"filename": "ic_history_white_3x.png",
"idiom": "universal",
"scale": "3x"
}
],
"info": {
"author": "xcode",
"version": 1
}
}
{
"images": [
{
"filename": "ic_image_white.png",
"idiom": "universal",
"scale": "1x"
},
{
"filename": "ic_image_white_2x.png",
"idiom": "universal",
"scale": "2x"
},
{
"filename": "ic_image_white_3x.png",
"idiom": "universal",
"scale": "3x"
}
],
"info": {
"author": "xcode",
"version": 1
}
}
{ {
"images" : [ "images": [
{ {
"idiom" : "universal", "filename": "ic_menu_white.png",
"filename" : "ic_menu_white.png", "idiom": "universal",
"scale" : "1x" "scale": "1x"
}, },
{ {
"idiom" : "universal", "filename": "ic_menu_white_2x.png",
"filename" : "ic_menu_white_2x.png", "idiom": "universal",
"scale" : "2x" "scale": "2x"
}, },
{ {
"idiom" : "universal", "filename": "ic_menu_white_3x.png",
"filename" : "ic_menu_white_3x.png", "idiom": "universal",
"scale" : "3x" "scale": "3x"
} }
], ],
"info" : { "info": {
"version" : 1, "author": "xcode",
"author" : "xcode" "version": 1
} }
} }
{
"images": [
{
"filename": "ic_movie_white.png",
"idiom": "universal",
"scale": "1x"
},
{
"filename": "ic_movie_white_2x.png",
"idiom": "universal",
"scale": "2x"
},
{
"filename": "ic_movie_white_3x.png",
"idiom": "universal",
"scale": "3x"
}
],
"info": {
"author": "xcode",
"version": 1
}
}
{
"images": [
{
"filename": "ic_photo_camera_white.png",
"idiom": "universal",
"scale": "1x"
},
{
"filename": "ic_photo_camera_white_2x.png",
"idiom": "universal",
"scale": "2x"
},
{
"filename": "ic_photo_camera_white_3x.png",
"idiom": "universal",
"scale": "3x"
}
],
"info": {
"author": "xcode",
"version": 1
}
}
{
"images": [
{
"filename": "ic_photo_library_white.png",
"idiom": "universal",
"scale": "1x"
},
{
"filename": "ic_photo_library_white_2x.png",
"idiom": "universal",
"scale": "2x"
},
{
"filename": "ic_photo_library_white_3x.png",
"idiom": "universal",
"scale": "3x"
}
],
"info": {
"author": "xcode",
"version": 1
}
}
{
"images": [
{
"filename": "ic_place_white.png",
"idiom": "universal",
"scale": "1x"
},
{
"filename": "ic_place_white_2x.png",
"idiom": "universal",
"scale": "2x"
},
{
"filename": "ic_place_white_3x.png",
"idiom": "universal",
"scale": "3x"
}
],
"info": {
"author": "xcode",
"version": 1
}
}
{ {
"images" : [ "images": [
{ {
"idiom" : "universal", "filename": "ic_search_white.png",
"filename" : "ic_search_white.png", "idiom": "universal",
"scale" : "1x" "scale": "1x"
}, },
{ {
"idiom" : "universal", "filename": "ic_search_white_2x.png",
"filename" : "ic_search_white_2x.png", "idiom": "universal",
"scale" : "2x" "scale": "2x"
}, },
{ {
"idiom" : "universal", "filename": "ic_search_white_3x.png",
"filename" : "ic_search_white_3x.png", "idiom": "universal",
"scale" : "3x" "scale": "3x"
} }
], ],
"info" : { "info": {
"version" : 1, "author": "xcode",
"author" : "xcode" "version": 1
} }
} }
{
"images": [
{
"filename": "ic_settings_white.png",
"idiom": "universal",
"scale": "1x"
},
{
"filename": "ic_settings_white_2x.png",
"idiom": "universal",
"scale": "2x"
},
{
"filename": "ic_settings_white_3x.png",
"idiom": "universal",
"scale": "3x"
}
],
"info": {
"author": "xcode",
"version": 1
}
}
{
"images": [
{
"filename": "ic_star_border_white.png",
"idiom": "universal",
"scale": "1x"
},
{
"filename": "ic_star_border_white_2x.png",
"idiom": "universal",
"scale": "2x"
},
{
"filename": "ic_star_border_white_3x.png",
"idiom": "universal",
"scale": "3x"
}
],
"info": {
"author": "xcode",
"version": 1
}
}
{
"images": [
{
"filename": "ic_star_half_white.png",
"idiom": "universal",
"scale": "1x"
},
{
"filename": "ic_star_half_white_2x.png",
"idiom": "universal",
"scale": "2x"
},
{
"filename": "ic_star_half_white_3x.png",
"idiom": "universal",
"scale": "3x"
}
],
"info": {
"author": "xcode",
"version": 1
}
}
{ {
"images" : [ "images": [
{ {
"idiom" : "universal", "filename": "ic_star_white.png",
"filename" : "ic_star_white.png", "idiom": "universal",
"scale" : "1x" "scale": "1x"
}, },
{ {
"idiom" : "universal", "filename": "ic_star_white_2x.png",
"filename" : "ic_star_white_2x.png", "idiom": "universal",
"scale" : "2x" "scale": "2x"
}, },
{ {
"idiom" : "universal", "filename": "ic_star_white_3x.png",
"filename" : "ic_star_white_3x.png", "idiom": "universal",
"scale" : "3x" "scale": "3x"
} }
], ],
"info" : { "info": {
"version" : 1, "author": "xcode",
"author" : "xcode" "version": 1
} }
} }
{ {
"images" : [ "images": [
{ {
"idiom" : "universal", "filename": "ic_videocam_white.png",
"filename" : "ic_videocam_white.png", "idiom": "universal",
"scale" : "1x" "scale": "1x"
}, },
{ {
"idiom" : "universal", "filename": "ic_videocam_white_2x.png",
"filename" : "ic_videocam_white_2x.png", "idiom": "universal",
"scale" : "2x" "scale": "2x"
}, },
{ {
"idiom" : "universal", "filename": "ic_videocam_white_3x.png",
"filename" : "ic_videocam_white_3x.png", "idiom": "universal",
"scale" : "3x" "scale": "3x"
} }
], ],
"info" : { "info": {
"version" : 1, "author": "xcode",
"author" : "xcode" "version": 1
} }
} }
...@@ -43,41 +43,70 @@ public struct MaterialIcon { ...@@ -43,41 +43,70 @@ public struct MaterialIcon {
return MaterialIcon.internalBundle! return MaterialIcon.internalBundle!
} }
private static func icon(name:String!) -> UIImage {
return (UIImage(named: name, inBundle: bundle, compatibleWithTraitCollection: nil)?.imageWithRenderingMode(.AlwaysTemplate))!
}
/// Default Google icons. /// Default Google icons.
public static let add: UIImage? = UIImage(named: "ic_add_white", inBundle: bundle, compatibleWithTraitCollection: nil)?.imageWithRenderingMode(.AlwaysTemplate) public static let add: UIImage? = MaterialIcon.icon("ic_add_white")
public static let arrowBack: UIImage? = UIImage(named: "ic_arrow_back_white", inBundle: bundle, compatibleWithTraitCollection: nil)?.imageWithRenderingMode(.AlwaysTemplate) public static let arrowBack: UIImage? = MaterialIcon.icon("ic_arrow_back_white")
public static let arrowDownward: UIImage? = UIImage(named: "ic_arrow_downward_white", inBundle: bundle, compatibleWithTraitCollection: nil)?.imageWithRenderingMode(.AlwaysTemplate) public static let arrowDownward: UIImage? = MaterialIcon.icon("ic_arrow_downward_white")
public static let clear: UIImage? = UIImage(named: "ic_close_white", inBundle: bundle, compatibleWithTraitCollection: nil)?.imageWithRenderingMode(.AlwaysTemplate) public static let addCircle: UIImage? = MaterialIcon.icon("ic_add_circle_white")
public static let close: UIImage? = UIImage(named: "ic_close_white", inBundle: bundle, compatibleWithTraitCollection: nil)?.imageWithRenderingMode(.AlwaysTemplate) public static let addCircleOutline: UIImage? = MaterialIcon.icon("ic_add_circle_outline_white")
public static let menu: UIImage? = UIImage(named: "ic_menu_white", inBundle: bundle, compatibleWithTraitCollection: nil)?.imageWithRenderingMode(.AlwaysTemplate) public static let audio: UIImage? = MaterialIcon.icon("ic_audiotrack_white")
public static let moreHorizontal: UIImage? = UIImage(named: "ic_more_horiz_white", inBundle: bundle, compatibleWithTraitCollection: nil)?.imageWithRenderingMode(.AlwaysTemplate) public static let bell: UIImage? = MaterialIcon.icon("cm_bell_white")
public static let moreVertical: UIImage? = UIImage(named: "ic_more_vert_white", inBundle: bundle, compatibleWithTraitCollection: nil)?.imageWithRenderingMode(.AlwaysTemplate) public static let clear: UIImage? = MaterialIcon.icon("ic_close_white")
public static let search: UIImage? = UIImage(named: "ic_search_white", inBundle: bundle, compatibleWithTraitCollection: nil)?.imageWithRenderingMode(.AlwaysTemplate) public static let close: UIImage? = MaterialIcon.icon("ic_close_white")
public static let share: UIImage? = UIImage(named: "ic_share_white", inBundle: bundle, compatibleWithTraitCollection: nil)?.imageWithRenderingMode(.AlwaysTemplate) public static let edit: UIImage? = MaterialIcon.icon("ic_edit_white")
public static let star: UIImage? = UIImage(named: "ic_star_white", inBundle: bundle, compatibleWithTraitCollection: nil)?.imageWithRenderingMode(.AlwaysTemplate) public static let history: UIImage? = MaterialIcon.icon("ic_history_white")
public static let videocam: UIImage? = UIImage(named: "ic_videocam_white", inBundle: bundle, compatibleWithTraitCollection: nil)?.imageWithRenderingMode(.AlwaysTemplate) public static let image: UIImage? = MaterialIcon.icon("ic_image_white")
public static let menu: UIImage? = MaterialIcon.icon("ic_menu_white")
public static let moreHorizontal: UIImage? = MaterialIcon.icon("ic_more_horiz_white")
public static let moreVertical: UIImage? = MaterialIcon.icon("ic_more_vert_white")
public static let movie: UIImage? = MaterialIcon.icon("ic_movie_white")
public static let pen: UIImage? = MaterialIcon.icon("ic_edit_white")
public static let place: UIImage? = MaterialIcon.icon("ic_place_white")
public static let photoCamera: UIImage? = MaterialIcon.icon("ic_photo_camera_white")
public static let photoLibrary: UIImage? = MaterialIcon.icon("ic_photo_library_white")
public static let search: UIImage? = MaterialIcon.icon("ic_search_white")
public static let settings: UIImage? = MaterialIcon.icon("ic_settings_white")
public static let share: UIImage? = MaterialIcon.icon("ic_share_white")
public static let star: UIImage? = MaterialIcon.icon("ic_star_white")
public static let starBorder: UIImage? = MaterialIcon.icon("ic_star_border_white")
public static let starHalf: UIImage? = MaterialIcon.icon("ic_star_half_white")
public static let videocam: UIImage? = MaterialIcon.icon("ic_videocam_white")
public static let video: UIImage? = MaterialIcon.icon("cm_video_white")
/// Custom CosmicMind icons. /// Custom CosmicMind icons.
public struct cm { public struct cm {
public static let add: UIImage? = UIImage(named: "cm_add_white", inBundle: bundle, compatibleWithTraitCollection: nil)?.imageWithRenderingMode(.AlwaysTemplate) public static let add: UIImage? = MaterialIcon.icon("cm_add_white")
public static let arrowBack: UIImage? = UIImage(named: "cm_arrow_back_white", inBundle: bundle, compatibleWithTraitCollection: nil)?.imageWithRenderingMode(.AlwaysTemplate) public static let addCircle: UIImage? = MaterialIcon.icon("ic_add_circle_white")
public static let arrowDownward: UIImage? = UIImage(named: "cm_arrow_downward_white", inBundle: bundle, compatibleWithTraitCollection: nil)?.imageWithRenderingMode(.AlwaysTemplate) public static let addCircleOutline: UIImage? = MaterialIcon.icon("ic_add_circle_outline_white")
public static let audio: UIImage? = UIImage(named: "cm_audio_white", inBundle: bundle, compatibleWithTraitCollection: nil)?.imageWithRenderingMode(.AlwaysTemplate) public static let arrowBack: UIImage? = MaterialIcon.icon("cm_arrow_back_white")
public static let bell: UIImage? = UIImage(named: "cm_bell_white", inBundle: bundle, compatibleWithTraitCollection: nil)?.imageWithRenderingMode(.AlwaysTemplate) public static let arrowDownward: UIImage? = MaterialIcon.icon("cm_arrow_downward_white")
public static let clear: UIImage? = UIImage(named: "cm_close_white", inBundle: bundle, compatibleWithTraitCollection: nil)?.imageWithRenderingMode(.AlwaysTemplate) public static let audio: UIImage? = MaterialIcon.icon("cm_audio_white")
public static let close: UIImage? = UIImage(named: "cm_close_white", inBundle: bundle, compatibleWithTraitCollection: nil)?.imageWithRenderingMode(.AlwaysTemplate) public static let bell: UIImage? = MaterialIcon.icon("cm_bell_white")
public static let image: UIImage? = UIImage(named: "cm_image_white", inBundle: bundle, compatibleWithTraitCollection: nil)?.imageWithRenderingMode(.AlwaysTemplate) public static let clear: UIImage? = MaterialIcon.icon("cm_close_white")
public static let menu: UIImage? = UIImage(named: "cm_menu_white", inBundle: bundle, compatibleWithTraitCollection: nil)?.imageWithRenderingMode(.AlwaysTemplate) public static let close: UIImage? = MaterialIcon.icon("cm_close_white")
public static let moreHorizontal: UIImage? = UIImage(named: "cm_more_horiz_white", inBundle: bundle, compatibleWithTraitCollection: nil)?.imageWithRenderingMode(.AlwaysTemplate) public static let edit: UIImage? = MaterialIcon.icon("cm_pen_white")
public static let moreVertical: UIImage? = UIImage(named: "cm_more_vert_white", inBundle: bundle, compatibleWithTraitCollection: nil)?.imageWithRenderingMode(.AlwaysTemplate) public static let image: UIImage? = MaterialIcon.icon("cm_image_white")
public static let pen: UIImage? = UIImage(named: "cm_pen_white", inBundle: bundle, compatibleWithTraitCollection: nil)?.imageWithRenderingMode(.AlwaysTemplate) public static let history: UIImage? = MaterialIcon.icon("ic_history_white")
public static let photoCamera: UIImage? = UIImage(named: "cm_photo_camera_white", inBundle: bundle, compatibleWithTraitCollection: nil)?.imageWithRenderingMode(.AlwaysTemplate) public static let menu: UIImage? = MaterialIcon.icon("cm_menu_white")
public static let photoLibrary: UIImage? = UIImage(named: "cm_photo_library_white", inBundle: bundle, compatibleWithTraitCollection: nil)?.imageWithRenderingMode(.AlwaysTemplate) public static let moreHorizontal: UIImage? = MaterialIcon.icon("cm_more_horiz_white")
public static let search: UIImage? = UIImage(named: "cm_search_white", inBundle: bundle, compatibleWithTraitCollection: nil)?.imageWithRenderingMode(.AlwaysTemplate) public static let moreVertical: UIImage? = MaterialIcon.icon("cm_more_vert_white")
public static let settings: UIImage? = UIImage(named: "cm_settings_white", inBundle: bundle, compatibleWithTraitCollection: nil)?.imageWithRenderingMode(.AlwaysTemplate) public static let movie: UIImage? = MaterialIcon.icon("ic_movie_white")
public static let share: UIImage? = UIImage(named: "cm_share_white", inBundle: bundle, compatibleWithTraitCollection: nil)?.imageWithRenderingMode(.AlwaysTemplate) public static let pen: UIImage? = MaterialIcon.icon("cm_pen_white")
public static let star: UIImage? = UIImage(named: "cm_star_white", inBundle: bundle, compatibleWithTraitCollection: nil)?.imageWithRenderingMode(.AlwaysTemplate) public static let place: UIImage? = MaterialIcon.icon("ic_place_white")
public static let video: UIImage? = UIImage(named: "cm_video_white", inBundle: bundle, compatibleWithTraitCollection: nil)?.imageWithRenderingMode(.AlwaysTemplate) public static let photoCamera: UIImage? = MaterialIcon.icon("cm_photo_camera_white")
public static let videocam: UIImage? = UIImage(named: "cm_videocam_white", inBundle: bundle, compatibleWithTraitCollection: nil)?.imageWithRenderingMode(.AlwaysTemplate) public static let photoLibrary: UIImage? = MaterialIcon.icon("cm_photo_library_white")
public static let search: UIImage? = MaterialIcon.icon("cm_search_white")
public static let settings: UIImage? = MaterialIcon.icon("cm_settings_white")
public static let share: UIImage? = MaterialIcon.icon("cm_share_white")
public static let star: UIImage? = MaterialIcon.icon("cm_star_white")
public static let starBorder: UIImage? = MaterialIcon.icon("ic_star_border_white")
public static let starHalf: UIImage? = MaterialIcon.icon("ic_star_half_white")
public static let video: UIImage? = MaterialIcon.icon("cm_video_white")
public static let videocam: UIImage? = MaterialIcon.icon("cm_videocam_white")
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment