![]() Then select the icon image we created in the previous step from our local system. Select the Image tab in the foreground option. module.This will be the page we see after opening the above URL. Then, you have to add a new file called (or modify it if it already exists) to include the assets property. Here's a snapshot of where I added the Sans Fransico Pro Display fonts in my project, under src/assets/fonts, where the filenames are in the form of SFProDisplay-*.otf, following their PostScript name. To find out the PostScript name, you have to install the font on your computer, and open up the FontBook application to check.Otherwise, on iOS, your app would throw errors when you start it.Font file names should follow their PostScript name. ![]() It's not that common that you get to see an iOS font on an android app □Ģ important things to note for adding custom fonts: Here's an example result when you have the same font of Sans Francisco Display Pro on both platforms. But if you are following this guide, you can take away the manual labor work of checking the dimensions and assigning each of those icons, since we would have the same set of icon names in Contents.json ✨ĮDIT : Since publishing this article, the creator of IconKitchen has taken my feedback to include the Contents.json in the iOS folder, so now you don't need to do Ctrl+V anymore from my project's Contents.json □ Adding custom fonts ![]() This manual process is actually what I've done too. After assigning them, you would have all slots filled, and the folder with the Images.xcassets folder and its Contents.json will be ready for building the app. On XCode, you can also enable additional icon settings for iPad & CarPlay on the right sidebar to show up more slots.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |