How to Use Custom Fonts in SwiftUI

preview_player
Показать описание
Learn how to add your own custom fonts in your SwiftUI app! Custom fonts can add a ton of personality to your app but make sure you don’t go overboard with it and compromise legibility!

🚨 SPECIAL CWC+ OFFER FOR YOUTUBE:

WEEKLY UPDATES VIA EMAIL:

CONNECT:

ABOUT CODEWITHCHRIS:

DID THESE LESSONS HELP YOU?

#CustomFonts #SwiftUI #Xcode
Рекомендации по теме
Комментарии
Автор

Many thanks for explaining it so clearly, especially the part on looping on the available font names to retrieve the specific custom font name we may need.

ZphmAvmKT
Автор

lifesaver! I needed to lowercase 'provided' and 'application' and also add .otf after the font!

BradCaldwellAuburn
Автор

This man seems like he'd be a great uncle lol. Thanks for the help Chris.

MadhavAlapati-pg
Автор

we can see the font name in the font book in font validation. also important is to remove the fonts in the copy bundle resources.

Tal.Talmon
Автор

Thank you so much. Also to the other commenters for finding the .plist file..

Why is selecting the custom font so hard though? 😅

distantstate
Автор

thanks for this info, I had no idea how to import fonts. now I've implemented it in an app already.

dugrut
Автор

Hi there, I'm very confused about wether I should add the font to the assets file, or just outside the assets. What is the difference and when should I use one over the other? Thanks

danstutorials
Автор

A best way to find the exactly font name is, right click on font file and choose get info option, youre gonna find the font name.

eliasferreira
Автор

I am so mad. After importing the fonts to the project and info plist, I still have to CHECK A BOX FOR THE FONT? plz. This is so mega counter intuitive. It should be checked by default.

xingzhexin
Автор

On macOS, there's no UIFont class. There is a NSFont class but it doesn't seem to have the same functions such as .familyNames and .fontNames(forFamilyName:)

roohbear
Автор

Hey Chris. I need help to change uiscreen when click on Button to get me on another screen. Can you make a video about that?

jeppefalkleth
Автор

There is no info.plist in xcode 15.4. Is this tutorial out of date?

ChuckBurgess
Автор

Hi - just a quick question; is it possible, and if so, how do you use variables from other structures? And amazing job with these videos.

swiftuiforkids
Автор

How do I make a video suggestion? Keep Up The Great Work 🎉🎉

jesseyates
Автор

whre can i find the info.plist? On Xcode 16.1 is it not visible on my projects. so where canI edit this file?

geildesignt
Автор

How do you run the loop to find the font names?

talaathassan
Автор

thank you
From a friendly fresh MongolianDev >.<

sharshuwuu
Автор

It is ridiculous having to go through all of these steps just to add a font!

martingreler