Xcode 11 Beta
.UILabel
with Plain
text and keep the System font with Regular style. Attributed
String and check font style, seems it changes with different font style and doesn't keep the same.PS: In Xcode 10
work fine.
To manage installed fonts, go to Settings > General, then tap Fonts.
As per Apple's official document https://developer.apple.com/fonts/
SF Pro:
This sans-serif typeface is the system font for iOS, macOS, and tvOS, and includes a rounded variant. It provides a consistent, legible, and friendly typographic voice.
SF Compact:
This sans-serif typeface is the system font for watchOS, and includes a rounded variant. It suits a wide range of content and is easily legible in a variety of contexts.
So we need to download and install SF Pro font and set UILabel
attributed string font style with SF Pro Text Regular 18.0
to keep the same font style like Plain text have.
Hope this will help you!
Cheers!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With