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
01b4a6d2
Commit
01b4a6d2
authored
Oct 05, 2015
by
Daniel Dahan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updating README
parent
9c9b96eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
README.md
+4
-3
No files found.
README.md
View file @
01b4a6d2
...
...
@@ -201,8 +201,8 @@ A BasicCardView can easily add an image as its background, below is the code tha
```
swift
let
v
:
BasicCardView
=
BasicCardView
(
titleLabel
:
UILabel
(),
detailLabel
:
UILabel
())
!
v
.
image
=
UIImage
(
named
:
"
space
"
)
v
.
spotlight
=
true
v
.
image
=
UIImage
(
named
:
"
img3
"
)
v
.
titleLabel
!.
textColor
=
MaterialColor
.
white
v
.
titleLabel
!.
font
=
RobotoFont
.
regularWithSize
(
18
)
...
...
@@ -214,7 +214,8 @@ v.detailLabel!.lineBreakMode = .ByWordWrapping
v
.
detailLabel
!.
numberOfLines
=
0
v
.
detailLabel
!.
text
=
"I am a very simple card. I am good at containing small bits of information. I am convenient because I require little code to use effectively."
// Add to UIViewController.
// Add to UIViewController
view
.
addSubview
(
v
)
v
.
translatesAutoresizingMaskIntoConstraints
=
false
MaterialLayout
.
alignToParentHorizontallyWithInsets
(
view
,
child
:
v
,
left
:
20
,
right
:
20
)
...
...
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