How to Use Custom Fonts in SwiftUI

Поділитися
Вставка
  • Опубліковано 3 лис 2024

КОМЕНТАРІ • 48

  • @CodeWithChris
    @CodeWithChris  2 роки тому

    👋 Our "Launch Your First App" program will help you build up your iOS skills to publish your very own feature rich app even if you’re a beginner starting from scratch. cwc.to/youtubeoffer

    • @CookedMilkshakeProductions
      @CookedMilkshakeProductions 2 роки тому

      I’m thinking of making an app(that is a game) I know you mostly do just apps, not games but. What do you think I should include in the game? A save game feature? Bossfight music?

  • @6Zp68h2m8AvmKT
    @6Zp68h2m8AvmKT Рік тому +1

    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.

  • @BradCaldwellAuburn
    @BradCaldwellAuburn 9 місяців тому

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

  • @MadhavAlapati-p2g
    @MadhavAlapati-p2g Рік тому +2

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

  • @chaordo
    @chaordo Рік тому

    Awesome video, thank you Chris!

  • @danstutorials3904
    @danstutorials3904 10 місяців тому

    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

  • @dugrut1325
    @dugrut1325 Рік тому

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

  • @distantstate
    @distantstate Місяць тому

    Thank you so much. Also to the other commenters for finding the .plist file..
    Why is selecting the custom font so hard though? 😅

  • @hawkeye6614
    @hawkeye6614 7 місяців тому

    Thanks man, love you

  • @Tal.Talmon
    @Tal.Talmon 10 місяців тому

    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.

  • @multimedia4953
    @multimedia4953 2 роки тому +1

    Thank you! Great video.

  • @devapk9555
    @devapk9555 Рік тому

    thank you sir for saving my life

  • @alexandersuvorov2002
    @alexandersuvorov2002 3 місяці тому

    Thank you!!!

  • @asadchattha3470
    @asadchattha3470 18 днів тому

    Thanks,
    My text was not reflecting custom fonts. I followed your video. I found I need to write name with extensions in info.plist

  • @xingzhexin8843
    @xingzhexin8843 7 місяців тому +1

    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.

    • @CodeWithChris
      @CodeWithChris  7 місяців тому

      I feel you. The process of adding custom fonts definitely needs improvement to make things easier. It's a good thing we only need to do the entire process of adding fonts once or a few times as needed. - Iñaki

  • @swiftuiforkids4768
    @swiftuiforkids4768 2 роки тому

    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.

    • @CodeWithChris
      @CodeWithChris  2 роки тому

      Hi! We suggest posting your question on our CodeCrew forum and have our tech support staff assist you. Just visit this link codecrew.codewithchris.com - Pat

  • @eliasferreira651
    @eliasferreira651 3 місяці тому

    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.

  • @jeppefalkleth7322
    @jeppefalkleth7322 Рік тому

    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?

  • @ChuckBurgess1
    @ChuckBurgess1 Місяць тому +1

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

  • @coldchickennoodles5575
    @coldchickennoodles5575 2 місяці тому

    Can you do this for the 2024 xcode?

  • @roohbear
    @roohbear 2 роки тому

    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:)

  • @jesseyates4473
    @jesseyates4473 2 роки тому +1

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

    • @CodeWithChris
      @CodeWithChris  2 роки тому

      Hi Jesse! You can send tutorial recommendations here app.productstash.io/codewithchris#/ideas - Pat

  • @radfaredu644
    @radfaredu644 Рік тому

    thank u dear teacher!

  • @geildesignt
    @geildesignt Рік тому +4

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

    • @CodeWithChris
      @CodeWithChris  Рік тому

      Hi! We suggest posting on our CodeCrew forum so that our tech support staff can help you. Just visit this link codecrew.codewithchris.com - Pat

  • @FabricioMTL
    @FabricioMTL Рік тому

    Thank You

  • @Circlered1Round-n8z
    @Circlered1Round-n8z 2 місяці тому

    When did you got app lessons

  • @talaathassan1526
    @talaathassan1526 Рік тому

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

    • @CodeWithChris
      @CodeWithChris  Рік тому

      At around 05:30, we start to write the code to loop over the fonts to find the file names. (and we see it in action at the end on the console)
      or check this: sarunw.com/posts/how-to-find-font-name-in-ios/
      @AdrienVillez

  • @sharshuwuu
    @sharshuwuu 9 місяців тому

    thank you
    From a friendly fresh MongolianDev >.

  • @eshansingh5232
    @eshansingh5232 8 місяців тому

    what aboit app playgrounds ?

  • @ken4179
    @ken4179 Рік тому +1

    I don't see an Info.plist?

    • @ken4179
      @ken4179 Рік тому +10

      For those who are on a newer version of xcode and don't see a plist: Click on your target app on the left hand side (it should be a blue icon and be the name of your project), go to the Info tab and it should take you to a similar screen where you can type in Fonts provided by application.

    • @Arav_Prasad
      @Arav_Prasad Рік тому

      @@ken4179 bro forgot to change accounts...

    • @ken4179
      @ken4179 Рік тому +3

      @@Arav_Prasad Nah I just came back and gave the solution to the problem after I found out what it was

    • @iamchu
      @iamchu Рік тому

      @@ken4179 Hi, under which dropdown did you add the fonts within the Info tab? (Custom iOS Target Properties/Document Types/etc..)

    • @casonvoss444
      @casonvoss444 Рік тому

      @@iamchu did you ever figure that out

  • @coldchickennoodles5575
    @coldchickennoodles5575 2 місяці тому

    I don't have an info pilist file

  • @martingreler6236
    @martingreler6236 27 днів тому

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

  • @keliiosdev
    @keliiosdev 2 роки тому

    🎉🎉🎉🎉🎉