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
ecc9cad5
Unverified
Commit
ecc9cad5
authored
Oct 02, 2016
by
Daniel Dahan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor updates to sample projects
parent
b591c92d
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
5 additions
and
5 deletions
+5
-5
Examples/Programmatic/Card/Card/Assets.xcassets/CosmicMind.imageset/CosmicMind.png
+0
-0
Examples/Programmatic/Card/Card/Assets.xcassets/pattern.imageset/Contents.json
+1
-1
Examples/Programmatic/Card/Card/Assets.xcassets/pattern.imageset/pattern.png
+0
-0
Examples/Programmatic/Card/Card/ViewController.swift
+2
-2
Examples/Programmatic/ImageCard/ImageCard/ViewController.swift
+1
-1
Examples/Programmatic/PresenterCard/PresenterCard/ViewController.swift
+1
-1
No files found.
Examples/Programmatic/Card/Card/Assets.xcassets/CosmicMind.imageset/CosmicMind.png
deleted
100644 → 0
View file @
b591c92d
16.9 KB
Examples/Programmatic/Card/Card/Assets.xcassets/
CosmicMind
.imageset/Contents.json
→
Examples/Programmatic/Card/Card/Assets.xcassets/
pattern
.imageset/Contents.json
View file @
ecc9cad5
...
...
@@ -2,7 +2,7 @@
"images"
:
[
{
"idiom"
:
"universal"
,
"filename"
:
"
CosmicMind
.png"
,
"filename"
:
"
pattern
.png"
,
"scale"
:
"1x"
},
{
...
...
Examples/Programmatic/Card/Card/Assets.xcassets/pattern.imageset/pattern.png
0 → 100644
View file @
ecc9cad5
601 KB
Examples/Programmatic/Card/Card/ViewController.swift
View file @
ecc9cad5
...
...
@@ -85,14 +85,14 @@ class ViewController: UIViewController {
private
func
prepareAuthorView
()
{
authorView
=
UIImageView
()
authorView
.
image
=
UIImage
(
named
:
"
CosmicMind
"
)?
.
resize
(
toWidth
:
24
)
authorView
.
image
=
UIImage
(
named
:
"
pattern
"
)?
.
resize
(
toWidth
:
24
)
authorView
.
contentMode
=
.
scaleAspectFit
}
private
func
prepareToolbar
()
{
toolbar
=
Toolbar
(
leftViews
:
[
authorView
],
rightViews
:
[
moreButton
])
toolbar
.
title
=
"
CosmicMind
"
toolbar
.
title
=
"
Material
"
toolbar
.
titleLabel
.
textAlignment
=
.
left
toolbar
.
detail
=
"Build Beautiful Software"
...
...
Examples/Programmatic/ImageCard/ImageCard/ViewController.swift
View file @
ecc9cad5
...
...
@@ -99,7 +99,7 @@ class ViewController: UIViewController {
private
func
prepareContentView
()
{
contentView
=
UILabel
()
contentView
.
numberOfLines
=
0
contentView
.
text
=
"
Material is an animation and graphics framework that is used to create beautiful applications
."
contentView
.
text
=
"
Build beautiful applications that are intelligently driven using Material, Graph, and Algorithm
."
contentView
.
font
=
RobotoFont
.
regular
(
with
:
14
)
}
...
...
Examples/Programmatic/PresenterCard/PresenterCard/ViewController.swift
View file @
ecc9cad5
...
...
@@ -99,7 +99,7 @@ class ViewController: UIViewController {
private
func
prepareToolbar
()
{
toolbar
=
Toolbar
(
rightViews
:
[
moreButton
])
toolbar
.
title
=
"
CosmicMind
"
toolbar
.
title
=
"
Material
"
toolbar
.
titleLabel
.
textAlignment
=
.
left
toolbar
.
detail
=
"Build Beautiful Software"
...
...
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