How to add custom font in SwiftUI project with XCode 15.


Photo by Alexander Andrews on Unsplash

Your file tree, add new font files

Add new .plist value

If you’re using XCode version over 14.x, there is not info.plist file.
Find out here: Project root > Target > Your app > Info
The key you need to add is “Fonts provided by application”
Put the file name you’ve added.

The real font name is going to be different from the file name.

You can find the actual font name by getting info on the font file.

See the “Full name”

Text("My New font").font(.custom("DM Sans", size: 16))

Use your fonts like this.



Fredric Cliver

Majored in Physics, self-taught and worked in the IT industry as a Dev/Design/Planning for 11 years. And I had run my Startup for 3 years. I fancy a ☔️ 🇬🇧