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
// 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
// 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
// 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
// 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
// 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 @@
objects
=
{
/* 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 */
;
};
967513F01C13EB69009F455A
/* ViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
967513EF1C13EB69009F455A
/* ViewController.swift */
;
};
967513F51C13EB69009F455A
/* Assets.xcassets in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
967513F41C13EB69009F455A
/* Assets.xcassets */
;
};
...
...
@@ -21,6 +23,7 @@
dstPath
=
""
;
dstSubfolderSpec
=
10
;
files
=
(
9637D21F1C28703300BCAF93
/* MaterialKit.framework in Embed Frameworks */
,
);
name
=
"Embed Frameworks"
;
runOnlyForDeploymentPostprocessing
=
0
;
...
...
@@ -28,6 +31,7 @@
/* End PBXCopyFilesBuildPhase 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
;
};
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>"
;
};
...
...
@@ -42,6 +46,7 @@
isa
=
PBXFrameworksBuildPhase
;
buildActionMask
=
2147483647
;
files
=
(
9637D21E1C28703300BCAF93
/* MaterialKit.framework in Frameworks */
,
);
runOnlyForDeploymentPostprocessing
=
0
;
};
...
...
@@ -51,6 +56,7 @@
967513E11C13EB69009F455A
=
{
isa
=
PBXGroup
;
children
=
(
9637D21D1C28703300BCAF93
/* MaterialKit.framework */
,
967513EC1C13EB69009F455A
/* ImageCardView */
,
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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// it under the terms of the GNU Affero General Public License as published
...
...
@@ -21,11 +21,10 @@ import UIKit
@objc(MaterialView)
public
class
MaterialView
:
UIView
{
/**
A CAShapeLayer used to store an image value. Rather than
use the default layer.contents property, the visualLayer
allows for separate management of the contents. This
solves the clipsToBounds issue when supporting a shadow
and image that needs to be clipped.
A CAShapeLayer used to manage elements that would be affected by
the clipToBounds property of the backing layer. For example, this
allows the dropshadow effect on the backing layer, while clipping
the image to a desired shape within the visualLayer.
*/
public
private(set)
lazy
var
visualLayer
:
CAShapeLayer
=
CAShapeLayer
()
...
...
@@ -35,9 +34,9 @@ public class MaterialView : UIView {
public
weak
var
delegate
:
MaterialDelegate
?
/**
A
n optional property that sets an image to the visualLayer's
contents property. Images should not be set to the backing layer's
contents
property to avoid conflicts when using clipsToBounds.
A
property that manages an image for the visualLayer's contents
property. Images should not be set to the backing layer's contents
property to avoid conflicts when using clipsToBounds.
*/
public
var
image
:
UIImage
?
{
didSet
{
...
...
@@ -68,9 +67,10 @@ public class MaterialView : UIView {
}
/**
A floating point value that defines a ratio between the pixel dimensions
of the visualLayer's contents property and the size of the view. By default,
this value is set to the UIScreen's scale value, (UIScreen.mainScreen().scale).
A floating point value that defines a ratio between the pixel
dimensions of the visualLayer's contents property and the size
of the view. By default, this value is set to the UIScreen's
scale value, UIScreen.mainScreen().scale.
*/
public
var
contentsScale
:
CGFloat
{
didSet
{
...
...
@@ -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
{
didSet
{
visualLayer
.
contentsGravity
=
MaterialGravityToString
(
contentsGravity
)
...
...
@@ -86,10 +86,10 @@ public class MaterialView : UIView {
}
/**
This property is the same as clipsToBounds. It crops any of the view's
contents from
bleeding past the view's frame. If an image is set using the image property, then this
value does not need to be set, since the visualLayer's maskToBounds is set to true by
default.
This property is the same as clipsToBounds. It crops any of the view's
contents from bleeding past the view's frame. If an image is set using
the image property, then this value does not need to be set, since the
visualLayer's maskToBounds is set to true by
default.
*/
public
var
masksToBounds
:
Bool
{
get
{
...
...
@@ -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
?
{
didSet
{
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
{
get
{
return
layer
.
frame
.
origin
.
x
...
...
@@ -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
{
get
{
return
layer
.
frame
.
origin
.
y
...
...
@@ -128,9 +128,9 @@ public class MaterialView : UIView {
}
/**
A
convenience
property that accesses the layer.frame.origin.width property.
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
A property that accesses the layer.frame.origin.width property.
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
shape.
*/
public
var
width
:
CGFloat
{
...
...
@@ -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
value that is not .None, the width will be adjusted to maintain the correct
shape.
...
...
@@ -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
?
{
didSet
{
layer
.
shadowColor
=
shadowColor
?
.
CGColor
...
...
@@ -201,9 +201,9 @@ public class MaterialView : UIView {
}
/**
A
convenience property that sets the shadowOffset, shadowOpacity, and
shadowRadius for the backing layer. This is the preferred method of
setting depth
in order to maintain consitency across UI objects.
A
property that sets the shadowOffset, shadowOpacity, and shadowRadius
for the backing layer. This is the preferred method of setting depth
in order to maintain consitency across UI objects.
*/
public
var
depth
:
MaterialDepth
{
didSet
{
...
...
@@ -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
{
didSet
{
...
...
@@ -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
{
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
// 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
// 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
// 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
// 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
// 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
// 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