UIFont/NSFont extension to handle custom fonts in Swift (iOS/macOS)
1 min readDec 11, 2017
I’ve just finished watching interesting presentation “To be! Or not? Optionals in practice” by Rob Napier
And I’d like to share one of Rob’s good ideas how to handle custom fonts with UIFont extension + NSFont extension for macOS
Here is a code snippet for UIFont:
and NSFont version: