14
votes

I have an UITextView with attributed text in which I want to select the new 'San Francisco' font for certain parts of the text. However, I can't find the font from Xcode's font picker.

Is there a way to select San Francisco or select the system's default font (as as I normally would if using plain text) using attributed text in Interface Builder?

1

1 Answers

12
votes

You need to download the font, then install/use it according to the guidelines:

https://developer.apple.com/fonts/

WWDC video on the subject:

https://developer.apple.com/videos/wwdc/2015/?id=804

There's also a github repo that contains the fonts and alternative instructions (in case you don't happen to have your Apple developer account handy):

https://github.com/supermarin/YosemiteSanFranciscoFont

*The font is still in a beta stage it looks like; use in production code at your own risk.