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
aaac19c6
Commit
aaac19c6
authored
Sep 07, 2017
by
Daniel Dahan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pr-851: fixed spelling issue with placeholderHorizontalOffset
parent
a45d1c68
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
Sources/iOS/TextField.swift
+18
-18
No files found.
Sources/iOS/TextField.swift
View file @
aaac19c6
...
@@ -210,28 +210,28 @@ open class TextField: UITextField {
...
@@ -210,28 +210,28 @@ open class TextField: UITextField {
open
var
placeholderActiveColor
=
Color
.
blue
.
base
{
open
var
placeholderActiveColor
=
Color
.
blue
.
base
{
didSet
{
didSet
{
updatePlaceholderLabelColor
()
updatePlaceholderLabelColor
()
}
}
}
}
/// This property adds a padding to placeholder y position animation
/// This property adds a padding to placeholder y position animation
@IBInspectable
@IBInspectable
open
var
placeholderVerticalOffset
:
CGFloat
=
0
open
var
placeholderVerticalOffset
:
CGFloat
=
0
/// This property adds a padding to placeholder y position animation
/// This property adds a padding to placeholder y position animation
@IBInspectable
@IBInspectable
open
var
placeholderHorizin
alOffset
:
CGFloat
=
0
open
var
placeholderHorizont
alOffset
:
CGFloat
=
0
/// The scale of the active placeholder in relation to the inactive
/// The scale of the active placeholder in relation to the inactive
@IBInspectable
@IBInspectable
open
var
placeholderActiveScale
:
CGFloat
=
0.75
{
open
var
placeholderActiveScale
:
CGFloat
=
0.75
{
didSet
{
didSet
{
layoutPlaceholderLabel
()
layoutPlaceholderLabel
()
}
}
}
}
/// The detailLabel UILabel that is displayed.
/// The detailLabel UILabel that is displayed.
@IBInspectable
@IBInspectable
open
let
detailLabel
=
UILabel
()
open
let
detailLabel
=
UILabel
()
/// The detailLabel text value.
/// The detailLabel text value.
@IBInspectable
@IBInspectable
...
@@ -527,9 +527,9 @@ fileprivate extension TextField {
...
@@ -527,9 +527,9 @@ fileprivate extension TextField {
switch
textAlignment
{
switch
textAlignment
{
case
.
left
,
.
natural
:
case
.
left
,
.
natural
:
placeholderLabel
.
x
=
w
+
placeholderHoriz
in
alOffset
placeholderLabel
.
x
=
w
+
placeholderHoriz
ont
alOffset
case
.
right
:
case
.
right
:
placeholderLabel
.
x
=
width
-
placeholderLabel
.
width
-
textInset
+
placeholderHoriz
in
alOffset
placeholderLabel
.
x
=
width
-
placeholderLabel
.
width
-
textInset
+
placeholderHoriz
ont
alOffset
default
:
break
default
:
break
}
}
...
@@ -673,9 +673,9 @@ extension TextField {
...
@@ -673,9 +673,9 @@ extension TextField {
switch
s
.
textAlignment
{
switch
s
.
textAlignment
{
case
.
left
,
.
natural
:
case
.
left
,
.
natural
:
s
.
placeholderLabel
.
x
=
s
.
leftViewWidth
+
s
.
textInset
+
s
.
placeholderHoriz
in
alOffset
s
.
placeholderLabel
.
x
=
s
.
leftViewWidth
+
s
.
textInset
+
s
.
placeholderHoriz
ont
alOffset
case
.
right
:
case
.
right
:
s
.
placeholderLabel
.
x
=
s
.
width
-
s
.
placeholderLabel
.
width
-
s
.
textInset
+
s
.
placeholderHoriz
in
alOffset
s
.
placeholderLabel
.
x
=
s
.
width
-
s
.
placeholderLabel
.
width
-
s
.
textInset
+
s
.
placeholderHoriz
ont
alOffset
default
:
break
default
:
break
}
}
...
...
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