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
24aaafba
Commit
24aaafba
authored
Aug 30, 2015
by
Daniel Dahan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updted Text
parent
89089e7f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
Source/TextView.swift
+3
-6
No files found.
Source/TextView.swift
View file @
24aaafba
...
...
@@ -18,9 +18,6 @@
import
UIKit
private
var
defaultTextColor
:
UIColor
=
UIColor
(
red
:
33
/
255
,
green
:
33
/
255
,
blue
:
33
/
255
,
alpha
:
1
)
private
var
defaultPlaceholderColor
:
UIColor
=
UIColor
(
red
:
159
/
255
,
green
:
160
/
255
,
blue
:
164
/
255
,
alpha
:
1
)
public
class
TextView
:
UITextView
{
//
// :name: label
...
...
@@ -69,7 +66,7 @@ public class TextView: UITextView {
:name: placeholderColor
:description: The placeholder color.
*/
public
var
placeholderColor
:
UIColor
=
defaultPlaceholderColor
{
public
var
placeholderColor
:
UIColor
=
MaterialTheme
.
blueGrey
.
lighten3
{
didSet
{
label
.
textColor
=
placeholderColor
}
...
...
@@ -144,9 +141,9 @@ public class TextView: UITextView {
//
private
func
setupView
()
{
backgroundColor
=
.
clearColor
()
textColor
=
defaultTextC
olor
textColor
=
MaterialTheme
.
black
.
c
olor
label
.
font
=
font
label
.
textColor
=
defaultPlaceholderColor
label
.
textColor
=
MaterialTheme
.
blueGrey
.
lighten3
label
.
textAlignment
=
textAlignment
label
.
text
=
placeholder
label
.
numberOfLines
=
0
...
...
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