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
62aeba0d
Unverified
Commit
62aeba0d
authored
May 04, 2016
by
M. Porooshani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed ErrorTextField indenting
parent
4a5d39bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
23 deletions
+23
-23
Sources/iOS/ErrorTextField.swift
+23
-23
No files found.
Sources/iOS/ErrorTextField.swift
View file @
62aeba0d
...
@@ -31,27 +31,27 @@
...
@@ -31,27 +31,27 @@
import
UIKit
import
UIKit
public
class
ErrorTextField
:
TextField
{
public
class
ErrorTextField
:
TextField
{
/// Controls the visibility of detailLabel
/// Controls the visibility of detailLabel
@IBInspectable
public
var
revealError
:
Bool
=
false
{
@IBInspectable
public
var
revealError
:
Bool
=
false
{
didSet
{
didSet
{
detailLabel
.
hidden
=
!
revealError
detailLabel
.
hidden
=
!
revealError
}
}
}
}
/**
/**
Prepares the view instance when intialized. When subclassing,
Prepares the view instance when intialized. When subclassing,
it is recommended to override the prepareView method
it is recommended to override the prepareView method
to initialize property values and other setup operations.
to initialize property values and other setup operations.
The super.prepareView method should always be called immediately
The super.prepareView method should always be called immediately
when subclassing.
when subclassing.
*/
*/
override
public
func
prepareView
()
{
override
public
func
prepareView
()
{
super
.
prepareView
()
super
.
prepareView
()
detailLabel
.
hidden
=
true
detailLabel
.
hidden
=
true
detailColor
=
MaterialColor
.
red
.
base
detailColor
=
MaterialColor
.
red
.
base
}
}
}
}
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