I think you might need to be more specific.
If you're creating an app for a non-Apple device, then you can't use San Francisco font.
However, if you're creating an app on an Apple device (e.g. iPhone, iPad, Apple Watch, Apple TV), then use the System font and it will use San Francisco font. Also, when you use the system font APIs, it will automatically pick the correct Text or Display versions (technically "optical size variants") depending on the font size used.
See also
UIFont.preferredFont(forTextStyle style:) - https://developer.apple.com/documentation/uikit/uifont/1619030-preferredfont
UIFont.systemFont(ofSize:) - https://developer.apple.com/documentation/uikit/uifont/1619042-systemfont
Hope this answers your question.
Doug Hill
https://github.com/djfitz/SFFontFeatures
Topic:
Developer Tools & Services
SubTopic:
General
Tags: