This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 128
Complete placeholder font & icon active color #119
Closed
Closed
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
a830390
Add placeholderFont handling
DamienBallenghien ddee3f6
Add placeholderFont property
DamienBallenghien 6264bfc
Merge pull request #2 from DamienBallenghien/DamienBallenghien-patch-1
DamienBallenghien 2193bdc
Merge pull request #1 from DamienBallenghien/DamienBallenghien-patch-…
DamienBallenghien 19114fe
Merge branch 'master' into master
DamienBallenghien 0491889
Draw password toggleable icon with active color
zepojo 53784ce
Merge pull request #1 from DamienBallenghien/master
AgapovOne bb58dc8
Merge pull request #2 from ink-spot/master
AgapovOne 0e63d0d
Update example project to compile with new placeholder font property
AgapovOne d959202
Update readme
AgapovOne 7476ae9
Merge branch 'master' of https://github.com/jobandtalent/AnimatedText…
AgapovOne File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -81,6 +81,7 @@ struct CustomTextInputStyle: AnimatedTextInputStyle { | |
let lineHeight: CGFloat = 3 | ||
let errorColor = UIColor.red | ||
let textInputFont = UIFont.systemFont(ofSize: 14) | ||
let placeHolderFont = UIFont.systemFont(ofSize: 14) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just curious.. Have you tried that the component is working when placeHolderFont.pointSize > textInputFont.pointSize ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It will work, but basically you want input font & placeholder font to be the same. ... Now I start thinking if we ever need to set placeholderFont to anything other than textInputFont. |
||
let textInputFontColor = UIColor.black | ||
let placeholderMinFontSize: CGFloat = 9 | ||
let counterLabelFont: UIFont? = UIFont.systemFont(ofSize: 9) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove setter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UITextField public interface requires setter.
Yes, this code is unused in text view, but it's needed for AnimatedTextField