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
65d8767b
Unverified
Commit
65d8767b
authored
Feb 21, 2017
by
Daniel Dahan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
development: set leftViewMode to always as a default for TextField
parent
885c63b1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Sources/iOS/BottomNavigationController.swift
+0
-1
Sources/iOS/TextField.swift
+2
-1
No files found.
Sources/iOS/BottomNavigationController.swift
View file @
65d8767b
...
@@ -110,7 +110,6 @@ open class BottomNavigationController: UITabBarController {
...
@@ -110,7 +110,6 @@ open class BottomNavigationController: UITabBarController {
view
.
clipsToBounds
=
true
view
.
clipsToBounds
=
true
view
.
contentScaleFactor
=
Screen
.
scale
view
.
contentScaleFactor
=
Screen
.
scale
view
.
backgroundColor
=
.
white
view
.
backgroundColor
=
.
white
// delegate = self
prepareTabBar
()
prepareTabBar
()
}
}
...
...
Sources/iOS/TextField.swift
View file @
65d8767b
...
@@ -101,7 +101,7 @@ open class TextField: UITextField {
...
@@ -101,7 +101,7 @@ open class TextField: UITextField {
return
leftViewOffset
+
height
return
leftViewOffset
+
height
}
}
/// The leftView
width
value.
/// The leftView
offset
value.
open
var
leftViewOffset
:
CGFloat
=
16
open
var
leftViewOffset
:
CGFloat
=
16
/// Placeholder normal text
/// Placeholder normal text
...
@@ -441,6 +441,7 @@ extension TextField {
...
@@ -441,6 +441,7 @@ extension TextField {
/// Prepares the leftView.
/// Prepares the leftView.
fileprivate
func
prepareLeftView
()
{
fileprivate
func
prepareLeftView
()
{
leftView
?
.
contentMode
=
.
left
leftView
?
.
contentMode
=
.
left
leftViewMode
=
.
always
updateLeftViewColor
()
updateLeftViewColor
()
}
}
...
...
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