At the WWDC19 there was introduced a lot of font related cool stuff for iOS13. One great thing is the new serif system font NewYork which can be used in your apps.
To initialize a
UIFont with this or any other of the new font styles, we have to use
UIFontDescriptors. I did not know about these before but they basically allow you to initialise a font by describing its characteristics, e.g. the style of the font or its family name.
So here we go:
It’s always nice to use system fonts because they are already installed on your iOS device which means you do not have to load them manually into your bundle. With iOS 13 there were a lot of great looking fonts introduced (see: https://developer.apple.com/fonts/system-fonts/ and link below).