1

I am using the SF UI Display for iOS on Xcode and I chose the Ultralight option, and this is what shows up on the storyboard (the correct version)enter image description here

This is what shows on the simulator when I run it, it looks much bolder and doesn't seem right...

enter image description here

Amit Kalra
  • 4,085
  • 6
  • 28
  • 44

2 Answers2

2

Since San Francisco is the System Font, no need to choose custom and use San Francisco, just use system.

Amit Kalra
  • 4,085
  • 6
  • 28
  • 44
  • I'm using system on the latest Xcode and it's not showing the San Francisco font. If I set it manually in code, it does show the .SFUIDisplay Font, but on the simulator it looks the same as Helvetica. – Rodrigo Ruiz Jul 13 '17 at 19:47
1

If it's a button, try this

[button.titleLabel setFont:[UIFont systemFontOfSize:size weight: UIFontWeightUltraLight]];

If it's a label, try this:

[label setFont:[UIFont systemFontOfSize:size weight: UIFontWeightUltraLight]];

In each of those cases, replace "size" with your desired font size.

EDIT: For Swift (labels), refer to this StackOverflow post

EDIT 2: For Swift (buttons), refer to this StackOverflow post

Community
  • 1
  • 1
JustMe
  • 306
  • 1
  • 4
  • 15