Comments (11)
Hi,
Can you please try the master
version (either by downloading the code or using Swift Package Manager) and let me know if the problem persists?
from textfieldeffects.
I have the same issue. I updated my Podfile to
pod 'TextFieldEffects', :git => 'https://github.com/raulriera/TextFieldEffects.git', :branch => 'master'
But it's ignoring any font settings on the textfield. Can you please fix that?
from textfieldeffects.
If the code in master is not fixing it, a PR is very welcome. I can't seem to reproduce that problem
from textfieldeffects.
What is PR???
from textfieldeffects.
PR = Pull Request, when you contribute code using this website Github
from textfieldeffects.
Having the same issue even on latest master branch
from textfieldeffects.
@raulriera please help to solve this problem. I'm on latest master branch. I'm using HoshiTextField and system font is not standard font
from textfieldeffects.
Could someone elaborate more on the problem? I can't do anything if I don't see what is wrong, what you are doing, which branch, swift, Xcode, etc. And most importantly, make sure the demo project doesn't reflect the problem you are describing
from textfieldeffects.
Hello guys!
I use AkiraTextField
type only so I will show an example on it.
AkiraTextField .swift
This function get in parameter for example native ".SFUI-Regular" but returns "Times New Roman" that looks not so nice in my opinion.
private func placeholderFontFromFont(_ font: UIFont) -> UIFont! {
let smallerFont = UIFont(name: font.fontName, size: font.pointSize * placeholderFontScale)
return smallerFont
}
I use Storyboard with added AkiraTextField
on it.
User Defined Runtime Attributes setup like that:
borderColor = UIColor.clear
placeholderColor = UIColor.white
placeholderFontScale = 0.85
Maybe it can be helpful to debug this edge case.
from textfieldeffects.
@raulriera Having the same font issue and I think it has something to do with iOS 13 or XCode 11.2.
Maybe it is related to this: https://stackoverflow.com/questions/58706570/how-can-i-find-the-source-of-this-font-related-coretext-warning-in-ios13
Error in the log:
CoreText note: Client requested name ".SFUI-Regular", it will get TimesNewRomanPSMT rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[UIFont systemFontOfSize:].
from textfieldeffects.
No one has confirmed that this happens in the demo project, can you please verify it there before commenting here? I can't reproduce the issues you are commenting
from textfieldeffects.
Related Issues (20)
- Change Placeholder to attributed font HOT 9
- Clear-Button is not being displayed HOT 1
- Hoshi Placeholder wrongly placed when Textfield is firstResponder HOT 14
- Font types of placeholder and content don't match HOT 4
- Placeholder label text not changing HOT 11
- Module compiled with Swift 5.1.2 cannot be imported by the Swift 5.2 compiler HOT 5
- HoshiTextField inactive state line does not appear HOT 3
- Issue in KaedeTextField Effect. HOT 1
- Placeholder not returning to original position. HOT 2
- Use of .fontName deprecated in Xcode 11 HOT 3
- It is not working on black background for view and white background for textfield HOT 1
- ailed to set (borderActiveColor) user defined inspected property on (TextFieldEffects.YokoTextField) this class is not key value coding-compliant for the key borderActiveColor. HOT 1
- TextField overlap rightview HOT 2
- How to move placeholder to center and stays there when cursor is ready
- Round Corner on Akira HOT 2
- Issue with some Fonts
- Issue with placeholder in iOS 15
- placeholder. floating not working proper
- Privacy Manifest
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from textfieldeffects.