How to Use Custom Fonts in SwiftUI

Поделиться
HTML-код
  • Опубликовано: 29 ноя 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.

  • @MadhavAlapati-p2g
    @MadhavAlapati-p2g Год назад +2

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

  • @BradCaldwellAuburn
    @BradCaldwellAuburn 9 месяцев назад

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

  • @danstutorials3904
    @danstutorials3904 11 месяцев назад

    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

  • @Tal.Talmon
    @Tal.Talmon 11 месяцев назад

    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.

  • @asadchattha3470
    @asadchattha3470 Месяц назад

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

  • @coldchickennoodles5575
    @coldchickennoodles5575 2 месяца назад

    Can you do this for the 2024 xcode?

  • @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?

  • @dugrut1325
    @dugrut1325 Год назад

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

  • @chaordo
    @chaordo Год назад

    Awesome video, thank you Chris!

  • @distantstate
    @distantstate 2 месяца назад

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

  • @ChuckBurgess1
    @ChuckBurgess1 2 месяца назад +1

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

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

  • @multimedia4953
    @multimedia4953 2 года назад +1

    Thank you! Great video.

  • @eliasferreira651
    @eliasferreira651 4 месяца назад

    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.

  • @hawkeye6614
    @hawkeye6614 8 месяцев назад

    Thanks man, love you

  • @xingzhexin8843
    @xingzhexin8843 8 месяцев назад +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  8 месяцев назад

      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

  • @devapk9555
    @devapk9555 Год назад

    thank you sir for saving my life

  • @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

  • @alexandersuvorov2002
    @alexandersuvorov2002 4 месяца назад

    Thank you!!!

  • @radfaredu644
    @radfaredu644 Год назад

    thank u dear teacher!

  • @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

  • @FabricioMTL
    @FabricioMTL Год назад

    Thank You

  • @Circlered1Round-n8z
    @Circlered1Round-n8z 3 месяца назад

    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

  • @eshansingh5232
    @eshansingh5232 9 месяцев назад

    what aboit app playgrounds ?

  • @coldchickennoodles5575
    @coldchickennoodles5575 3 месяца назад

    I don't have an info pilist file

  • @sharshuwuu
    @sharshuwuu 10 месяцев назад

    thank you
    From a friendly fresh MongolianDev >.

  • @ken4179
    @ken4179 2 года назад +1

    I don't see an Info.plist?

    • @ken4179
      @ken4179 2 года назад +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

  • @keliiosdev
    @keliiosdev 2 года назад

    🎉🎉🎉🎉🎉

  • @martingreler6236
    @martingreler6236 Месяц назад

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