Bird
0
0

Given a new iOS Swift project, where would you place a custom font file to use it in your app?

medium📝 Predict Output Q4 of 15
iOS Swift - iOS Basics and Setup
Given a new iOS Swift project, where would you place a custom font file to use it in your app?
AIn the Assets.xcassets folder
BIn the Resources folder and update Info.plist
CIn the Sources folder
DIn the Frameworks folder
Step-by-Step Solution
Solution:
  1. Step 1: Locate correct folder for fonts

    Custom fonts go into the Resources folder or a similar folder for assets.
  2. Step 2: Update Info.plist for font registration

    You must add font file names to Info.plist under 'Fonts provided by application' key.
  3. Final Answer:

    In the Resources folder and update Info.plist -> Option B
  4. Quick Check:

    Fonts = Resources + Info.plist update [OK]
Quick Trick: Fonts need Resources folder plus Info.plist entry [OK]
Common Mistakes:
  • Placing fonts in Sources folder
  • Not updating Info.plist
  • Putting fonts in Assets.xcassets

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More iOS Swift Quizzes