Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
Material
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitriy Stepanets
Material
Commits
967f1ff6
Commit
967f1ff6
authored
Dec 21, 2015
by
Daniel Dahan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated MaterialView comments
parent
bdd87452
Hide whitespace changes
Inline
Side-by-side
Showing
75 changed files
with
113 additions
and
103 deletions
+113
-103
Examples/Programmatic/CaptureView/CaptureView/AppDelegate.swift
+1
-1
Examples/Programmatic/CaptureView/CaptureView/ViewController.swift
+1
-1
Examples/Programmatic/CardView/CardView/AppDelegate.swift
+1
-1
Examples/Programmatic/CardView/CardView/ContentKit+UIImage.swift
+1
-1
Examples/Programmatic/CardView/CardView/ViewController.swift
+1
-1
Examples/Programmatic/ImageCardView/ImageCardView.xcodeproj/project.pbxproj
+6
-0
Examples/Programmatic/ImageCardView/ImageCardView/AppDelegate.swift
+1
-1
Examples/Programmatic/ImageCardView/ImageCardView/ContentKit+UIImage.swift
+1
-1
Examples/Programmatic/ImageCardView/ImageCardView/ViewController.swift
+1
-1
Examples/Programmatic/MaterialButton/MaterialButton/AppDelegate.swift
+1
-1
Examples/Programmatic/MaterialButton/MaterialButton/ViewController.swift
+1
-1
Examples/Programmatic/MaterialLayer/MaterialLayer/AppDelegate.swift
+1
-1
Examples/Programmatic/MaterialLayer/MaterialLayer/ViewController.swift
+1
-1
Examples/Programmatic/MaterialLayout/MaterialLayout/AppDelegate.swift
+1
-1
Examples/Programmatic/MaterialLayout/MaterialLayout/ViewController.swift
+1
-1
Examples/Programmatic/MaterialPulseView/MaterialPulseView/AppDelegate.swift
+1
-1
Examples/Programmatic/MaterialPulseView/MaterialPulseView/ViewController.swift
+1
-1
Examples/Programmatic/MaterialView/MaterialView/AppDelegate.swift
+1
-1
Examples/Programmatic/MaterialView/MaterialView/ViewController.swift
+1
-1
Examples/Programmatic/NavigationBarView/NavigationBarView/AppDelegate.swift
+1
-1
Examples/Programmatic/NavigationBarView/NavigationBarView/ViewController.swift
+1
-1
Examples/Programmatic/SideNavigationViewController/SideNavigationViewController/AMainViewController.swift
+1
-1
Examples/Programmatic/SideNavigationViewController/SideNavigationViewController/AppDelegate.swift
+1
-1
Examples/Programmatic/SideNavigationViewController/SideNavigationViewController/BMainViewController.swift
+1
-1
Examples/Programmatic/SideNavigationViewController/SideNavigationViewController/SideViewController.swift
+1
-1
Examples/Programmatic/TextField/TextField/AppDelegate.swift
+1
-1
Examples/Programmatic/TextField/TextField/ViewController.swift
+1
-1
Examples/Storyboards/CardView/CardView/AppDelegate.swift
+1
-1
Examples/Storyboards/CardView/CardView/ViewController.swift
+1
-1
Examples/Storyboards/ImageCardView/ImageCardView/AppDelegate.swift
+1
-1
Examples/Storyboards/ImageCardView/ImageCardView/ViewController.swift
+1
-1
Examples/Storyboards/MaterialButton/MaterialButton/AppDelegate.swift
+1
-1
Examples/Storyboards/MaterialButton/MaterialButton/ViewController.swift
+1
-1
Examples/Storyboards/MaterialPulseView/MaterialPulseView/AppDelegate.swift
+1
-1
Examples/Storyboards/MaterialPulseView/MaterialPulseView/ViewController.swift
+1
-1
Examples/Storyboards/NavigationBarView/NavigationBarView/AppDelegate.swift
+1
-1
Examples/Storyboards/NavigationBarView/NavigationBarView/ViewController.swift
+1
-1
Examples/Storyboards/SideNavigationViewController/SideNavigationViewController/AppDelegate.swift
+1
-1
Examples/Storyboards/SideNavigationViewController/SideNavigationViewController/MainViewController.swift
+1
-1
Examples/Storyboards/SideNavigationViewController/SideNavigationViewController/SideViewController.swift
+1
-1
Sources/CapturePreviewView.swift
+1
-1
Sources/CaptureSession.swift
+1
-1
Sources/CaptureView.swift
+1
-1
Sources/CardView.swift
+1
-1
Sources/FabButton.swift
+1
-1
Sources/FlatButton.swift
+1
-1
Sources/ImageCardView.swift
+1
-1
Sources/Material+UIFont.swift
+1
-1
Sources/MaterialAnimation.swift
+1
-1
Sources/MaterialBasicAnimation.swift
+1
-1
Sources/MaterialBorder.swift
+1
-1
Sources/MaterialButton.swift
+1
-1
Sources/MaterialColor.swift
+1
-1
Sources/MaterialDepth.swift
+1
-1
Sources/MaterialEdgeInsets.swift
+1
-1
Sources/MaterialFont.swift
+1
-1
Sources/MaterialGravity.swift
+1
-1
Sources/MaterialKeyframeAnimation.swift
+1
-1
Sources/MaterialKit.h
+1
-1
Sources/MaterialLabel.swift
+1
-1
Sources/MaterialLayer.swift
+1
-1
Sources/MaterialLayout.swift
+1
-1
Sources/MaterialPulseView.swift
+1
-1
Sources/MaterialRadius.swift
+1
-1
Sources/MaterialShape.swift
+1
-1
Sources/MaterialTextLayer.swift
+1
-1
Sources/MaterialTheme.swift
+1
-1
Sources/MaterialTransitionAnimation.swift
+1
-1
Sources/MaterialView.swift
+34
-30
Sources/NavigationBarView.swift
+1
-1
Sources/RaisedButton.swift
+1
-1
Sources/RobotoFont.swift
+1
-1
Sources/SideNavigationViewController.swift
+1
-1
Sources/TextField.swift
+1
-1
Tests/MaterialKitTests.swift
+1
-1
No files found.
Examples/Programmatic/CaptureView/CaptureView/AppDelegate.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Examples/Programmatic/CaptureView/CaptureView/ViewController.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Examples/Programmatic/CardView/CardView/AppDelegate.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Examples/Programmatic/CardView/CardView/ContentKit+UIImage.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Examples/Programmatic/CardView/CardView/ViewController.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Examples/Programmatic/ImageCardView/ImageCardView.xcodeproj/project.pbxproj
View file @
967f1ff6
...
@@ -7,6 +7,8 @@
...
@@ -7,6 +7,8 @@
objects
=
{
objects
=
{
/* Begin PBXBuildFile section */
/* Begin PBXBuildFile section */
9637D21E1C28703300BCAF93
/* MaterialKit.framework in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9637D21D1C28703300BCAF93
/* MaterialKit.framework */
;
};
9637D21F1C28703300BCAF93
/* MaterialKit.framework in Embed Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9637D21D1C28703300BCAF93
/* MaterialKit.framework */
;
settings
=
{
ATTRIBUTES
=
(
CodeSignOnCopy
,
RemoveHeadersOnCopy
,
);
};
};
967513EE1C13EB69009F455A
/* AppDelegate.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
967513ED1C13EB69009F455A
/* AppDelegate.swift */
;
};
967513EE1C13EB69009F455A
/* AppDelegate.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
967513ED1C13EB69009F455A
/* AppDelegate.swift */
;
};
967513F01C13EB69009F455A
/* ViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
967513EF1C13EB69009F455A
/* ViewController.swift */
;
};
967513F01C13EB69009F455A
/* ViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
967513EF1C13EB69009F455A
/* ViewController.swift */
;
};
967513F51C13EB69009F455A
/* Assets.xcassets in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
967513F41C13EB69009F455A
/* Assets.xcassets */
;
};
967513F51C13EB69009F455A
/* Assets.xcassets in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
967513F41C13EB69009F455A
/* Assets.xcassets */
;
};
...
@@ -21,6 +23,7 @@
...
@@ -21,6 +23,7 @@
dstPath
=
""
;
dstPath
=
""
;
dstSubfolderSpec
=
10
;
dstSubfolderSpec
=
10
;
files
=
(
files
=
(
9637D21F1C28703300BCAF93
/* MaterialKit.framework in Embed Frameworks */
,
);
);
name
=
"Embed Frameworks"
;
name
=
"Embed Frameworks"
;
runOnlyForDeploymentPostprocessing
=
0
;
runOnlyForDeploymentPostprocessing
=
0
;
...
@@ -28,6 +31,7 @@
...
@@ -28,6 +31,7 @@
/* End PBXCopyFilesBuildPhase section */
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
/* Begin PBXFileReference section */
9637D21D1C28703300BCAF93
/* 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>"
;
};
967513EA1C13EB69009F455A
/* ImageCardView.app */
=
{
isa
=
PBXFileReference
;
explicitFileType
=
wrapper.application
;
includeInIndex
=
0
;
path
=
ImageCardView.app
;
sourceTree
=
BUILT_PRODUCTS_DIR
;
};
967513EA1C13EB69009F455A
/* ImageCardView.app */
=
{
isa
=
PBXFileReference
;
explicitFileType
=
wrapper.application
;
includeInIndex
=
0
;
path
=
ImageCardView.app
;
sourceTree
=
BUILT_PRODUCTS_DIR
;
};
967513ED1C13EB69009F455A
/* AppDelegate.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
AppDelegate.swift
;
sourceTree
=
"<group>"
;
};
967513ED1C13EB69009F455A
/* AppDelegate.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
AppDelegate.swift
;
sourceTree
=
"<group>"
;
};
967513EF1C13EB69009F455A
/* ViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
ViewController.swift
;
sourceTree
=
"<group>"
;
};
967513EF1C13EB69009F455A
/* ViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
ViewController.swift
;
sourceTree
=
"<group>"
;
};
...
@@ -42,6 +46,7 @@
...
@@ -42,6 +46,7 @@
isa
=
PBXFrameworksBuildPhase
;
isa
=
PBXFrameworksBuildPhase
;
buildActionMask
=
2147483647
;
buildActionMask
=
2147483647
;
files
=
(
files
=
(
9637D21E1C28703300BCAF93
/* MaterialKit.framework in Frameworks */
,
);
);
runOnlyForDeploymentPostprocessing
=
0
;
runOnlyForDeploymentPostprocessing
=
0
;
};
};
...
@@ -51,6 +56,7 @@
...
@@ -51,6 +56,7 @@
967513E11C13EB69009F455A
=
{
967513E11C13EB69009F455A
=
{
isa
=
PBXGroup
;
isa
=
PBXGroup
;
children
=
(
children
=
(
9637D21D1C28703300BCAF93
/* MaterialKit.framework */
,
967513EC1C13EB69009F455A
/* ImageCardView */
,
967513EC1C13EB69009F455A
/* ImageCardView */
,
967513EB1C13EB69009F455A
/* Products */
,
967513EB1C13EB69009F455A
/* Products */
,
);
);
...
...
Examples/Programmatic/ImageCardView/ImageCardView/AppDelegate.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Examples/Programmatic/ImageCardView/ImageCardView/ContentKit+UIImage.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Examples/Programmatic/ImageCardView/ImageCardView/ViewController.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Examples/Programmatic/MaterialButton/MaterialButton/AppDelegate.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Examples/Programmatic/MaterialButton/MaterialButton/ViewController.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Examples/Programmatic/MaterialLayer/MaterialLayer/AppDelegate.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Examples/Programmatic/MaterialLayer/MaterialLayer/ViewController.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Examples/Programmatic/MaterialLayout/MaterialLayout/AppDelegate.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Examples/Programmatic/MaterialLayout/MaterialLayout/ViewController.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Examples/Programmatic/MaterialPulseView/MaterialPulseView/AppDelegate.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Examples/Programmatic/MaterialPulseView/MaterialPulseView/ViewController.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Examples/Programmatic/MaterialView/MaterialView/AppDelegate.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Examples/Programmatic/MaterialView/MaterialView/ViewController.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Examples/Programmatic/NavigationBarView/NavigationBarView/AppDelegate.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Examples/Programmatic/NavigationBarView/NavigationBarView/ViewController.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Examples/Programmatic/SideNavigationViewController/SideNavigationViewController/AMainViewController.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Examples/Programmatic/SideNavigationViewController/SideNavigationViewController/AppDelegate.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Examples/Programmatic/SideNavigationViewController/SideNavigationViewController/BMainViewController.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Examples/Programmatic/SideNavigationViewController/SideNavigationViewController/SideViewController.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Examples/Programmatic/TextField/TextField/AppDelegate.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Examples/Programmatic/TextField/TextField/ViewController.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Examples/Storyboards/CardView/CardView/AppDelegate.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Examples/Storyboards/CardView/CardView/ViewController.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Examples/Storyboards/ImageCardView/ImageCardView/AppDelegate.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Examples/Storyboards/ImageCardView/ImageCardView/ViewController.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Examples/Storyboards/MaterialButton/MaterialButton/AppDelegate.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Examples/Storyboards/MaterialButton/MaterialButton/ViewController.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Examples/Storyboards/MaterialPulseView/MaterialPulseView/AppDelegate.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Examples/Storyboards/MaterialPulseView/MaterialPulseView/ViewController.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Examples/Storyboards/NavigationBarView/NavigationBarView/AppDelegate.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Examples/Storyboards/NavigationBarView/NavigationBarView/ViewController.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Examples/Storyboards/SideNavigationViewController/SideNavigationViewController/AppDelegate.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Examples/Storyboards/SideNavigationViewController/SideNavigationViewController/MainViewController.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Examples/Storyboards/SideNavigationViewController/SideNavigationViewController/SideViewController.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Sources/CapturePreviewView.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Sources/CaptureSession.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Sources/CaptureView.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Sources/CardView.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Sources/FabButton.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Sources/FlatButton.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Sources/ImageCardView.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Sources/Material+UIFont.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Sources/MaterialAnimation.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Sources/MaterialBasicAnimation.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Sources/MaterialBorder.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Sources/MaterialButton.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Sources/MaterialColor.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Sources/MaterialDepth.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Sources/MaterialEdgeInsets.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Sources/MaterialFont.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Sources/MaterialGravity.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Sources/MaterialKeyframeAnimation.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Sources/MaterialKit.h
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Sources/MaterialLabel.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Sources/MaterialLayer.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Sources/MaterialLayout.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Sources/MaterialPulseView.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Sources/MaterialRadius.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Sources/MaterialShape.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Sources/MaterialTextLayer.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Sources/MaterialTheme.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Sources/MaterialTransitionAnimation.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Sources/MaterialView.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
@@ -21,11 +21,10 @@ import UIKit
...
@@ -21,11 +21,10 @@ import UIKit
@objc(MaterialView)
@objc(MaterialView)
public
class
MaterialView
:
UIView
{
public
class
MaterialView
:
UIView
{
/**
/**
A CAShapeLayer used to store an image value. Rather than
A CAShapeLayer used to manage elements that would be affected by
use the default layer.contents property, the visualLayer
the clipToBounds property of the backing layer. For example, this
allows for separate management of the contents. This
allows the dropshadow effect on the backing layer, while clipping
solves the clipsToBounds issue when supporting a shadow
the image to a desired shape within the visualLayer.
and image that needs to be clipped.
*/
*/
public
private(set)
lazy
var
visualLayer
:
CAShapeLayer
=
CAShapeLayer
()
public
private(set)
lazy
var
visualLayer
:
CAShapeLayer
=
CAShapeLayer
()
...
@@ -35,9 +34,9 @@ public class MaterialView : UIView {
...
@@ -35,9 +34,9 @@ public class MaterialView : UIView {
public
weak
var
delegate
:
MaterialDelegate
?
public
weak
var
delegate
:
MaterialDelegate
?
/**
/**
A
n optional property that sets an image to the visualLayer's
A
property that manages an image for the visualLayer's contents
contents property. Images should not be set to the backing layer's
property. Images should not be set to the backing layer's contents
contents
property to avoid conflicts when using clipsToBounds.
property to avoid conflicts when using clipsToBounds.
*/
*/
public
var
image
:
UIImage
?
{
public
var
image
:
UIImage
?
{
didSet
{
didSet
{
...
@@ -68,9 +67,10 @@ public class MaterialView : UIView {
...
@@ -68,9 +67,10 @@ public class MaterialView : UIView {
}
}
/**
/**
A floating point value that defines a ratio between the pixel dimensions
A floating point value that defines a ratio between the pixel
of the visualLayer's contents property and the size of the view. By default,
dimensions of the visualLayer's contents property and the size
this value is set to the UIScreen's scale value, (UIScreen.mainScreen().scale).
of the view. By default, this value is set to the UIScreen's
scale value, UIScreen.mainScreen().scale.
*/
*/
public
var
contentsScale
:
CGFloat
{
public
var
contentsScale
:
CGFloat
{
didSet
{
didSet
{
...
@@ -78,7 +78,7 @@ public class MaterialView : UIView {
...
@@ -78,7 +78,7 @@ public class MaterialView : UIView {
}
}
}
}
/// Determine how content should be aligned within the visualLayer's bounds.
/// Determine
s
how content should be aligned within the visualLayer's bounds.
public
var
contentsGravity
:
MaterialGravity
{
public
var
contentsGravity
:
MaterialGravity
{
didSet
{
didSet
{
visualLayer
.
contentsGravity
=
MaterialGravityToString
(
contentsGravity
)
visualLayer
.
contentsGravity
=
MaterialGravityToString
(
contentsGravity
)
...
@@ -86,10 +86,10 @@ public class MaterialView : UIView {
...
@@ -86,10 +86,10 @@ public class MaterialView : UIView {
}
}
/**
/**
This property is the same as clipsToBounds. It crops any of the view's
contents from
This property is the same as clipsToBounds. It crops any of the view's
bleeding past the view's frame. If an image is set using the image property, then this
contents from bleeding past the view's frame. If an image is set using
value does not need to be set, since the visualLayer's maskToBounds is set to true by
the image property, then this value does not need to be set, since the
default.
visualLayer's maskToBounds is set to true by
default.
*/
*/
public
var
masksToBounds
:
Bool
{
public
var
masksToBounds
:
Bool
{
get
{
get
{
...
@@ -100,14 +100,14 @@ public class MaterialView : UIView {
...
@@ -100,14 +100,14 @@ public class MaterialView : UIView {
}
}
}
}
/// A
n optional
property that accesses the backing layer's backgroundColor.
/// A property that accesses the backing layer's backgroundColor.
public
override
var
backgroundColor
:
UIColor
?
{
public
override
var
backgroundColor
:
UIColor
?
{
didSet
{
didSet
{
layer
.
backgroundColor
=
backgroundColor
?
.
CGColor
layer
.
backgroundColor
=
backgroundColor
?
.
CGColor
}
}
}
}
/// A
convenience
property that accesses the layer.frame.origin.x property.
/// A property that accesses the layer.frame.origin.x property.
public
var
x
:
CGFloat
{
public
var
x
:
CGFloat
{
get
{
get
{
return
layer
.
frame
.
origin
.
x
return
layer
.
frame
.
origin
.
x
...
@@ -117,7 +117,7 @@ public class MaterialView : UIView {
...
@@ -117,7 +117,7 @@ public class MaterialView : UIView {
}
}
}
}
/// A
convenience
property that accesses the layer.frame.origin.y property.
/// A property that accesses the layer.frame.origin.y property.
public
var
y
:
CGFloat
{
public
var
y
:
CGFloat
{
get
{
get
{
return
layer
.
frame
.
origin
.
y
return
layer
.
frame
.
origin
.
y
...
@@ -128,9 +128,9 @@ public class MaterialView : UIView {
...
@@ -128,9 +128,9 @@ public class MaterialView : UIView {
}
}
/**
/**
A
convenience
property that accesses the layer.frame.origin.width property.
A property that accesses the layer.frame.origin.width property.
When setting this property in conjunction with the shape property having a
When setting this property in conjunction with the shape property having a
value that is not .None, the height will be adjusted to maintain the correct
value that is not .None, the height will be adjusted to maintain the correct
shape.
shape.
*/
*/
public
var
width
:
CGFloat
{
public
var
width
:
CGFloat
{
...
@@ -146,7 +146,7 @@ public class MaterialView : UIView {
...
@@ -146,7 +146,7 @@ public class MaterialView : UIView {
}
}
/**
/**
A
convenience
property that accesses the layer.frame.origin.height property.
A property that accesses the layer.frame.origin.height property.
When setting this property in conjunction with the shape property having a
When setting this property in conjunction with the shape property having a
value that is not .None, the width will be adjusted to maintain the correct
value that is not .None, the width will be adjusted to maintain the correct
shape.
shape.
...
@@ -163,7 +163,7 @@ public class MaterialView : UIView {
...
@@ -163,7 +163,7 @@ public class MaterialView : UIView {
}
}
}
}
/// A
n optional
property that accesses the backing layer's shadowColor.
/// A property that accesses the backing layer's shadowColor.
public
var
shadowColor
:
UIColor
?
{
public
var
shadowColor
:
UIColor
?
{
didSet
{
didSet
{
layer
.
shadowColor
=
shadowColor
?
.
CGColor
layer
.
shadowColor
=
shadowColor
?
.
CGColor
...
@@ -201,9 +201,9 @@ public class MaterialView : UIView {
...
@@ -201,9 +201,9 @@ public class MaterialView : UIView {
}
}
/**
/**
A
convenience property that sets the shadowOffset, shadowOpacity, and
A
property that sets the shadowOffset, shadowOpacity, and shadowRadius
shadowRadius for the backing layer. This is the preferred method of
for the backing layer. This is the preferred method of setting depth
setting depth
in order to maintain consitency across UI objects.
in order to maintain consitency across UI objects.
*/
*/
public
var
depth
:
MaterialDepth
{
public
var
depth
:
MaterialDepth
{
didSet
{
didSet
{
...
@@ -215,7 +215,9 @@ public class MaterialView : UIView {
...
@@ -215,7 +215,9 @@ public class MaterialView : UIView {
}
}
/**
/**
:name: cornerRadius
A property that sets the cornerRadius of the backing layer. If the shape
property has a value of .Circle when the cornerRadius is set, it will
become .None, as it no longer maintains its circle shape.
*/
*/
public
var
cornerRadius
:
MaterialRadius
{
public
var
cornerRadius
:
MaterialRadius
{
didSet
{
didSet
{
...
@@ -229,7 +231,9 @@ public class MaterialView : UIView {
...
@@ -229,7 +231,9 @@ public class MaterialView : UIView {
}
}
/**
/**
:name: shape
A property that manages the overall shape for the object. If either the
width or height property is set, the other will be automatically adjusted
to maintain the shape of the object.
*/
*/
public
var
shape
:
MaterialShape
{
public
var
shape
:
MaterialShape
{
didSet
{
didSet
{
...
...
Sources/NavigationBarView.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Sources/RaisedButton.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Sources/RobotoFont.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Sources/SideNavigationViewController.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Sources/TextField.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Tests/MaterialKitTests.swift
View file @
967f1ff6
//
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
and other CosmicMind contributors
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io>
//
//
// This program is free software: you can redistribute it and/or modify
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment