Monday, June 27, 2016

How to use Font rather than Images in App.(Swift)

As we know for any logo,button logo we use images which are in png,jpeg format and we have to add every time by using that our app size is increasing also the files too. so for that this is very helpful by which our app will work fluently and file size also decreases.

following are the steps to use it.

Step 1: go to the website https://icomoon.io/

Step 2 : Click on Icomoon App.

Step 3: Select icons which you want , also you can add your icons too.

Step 4 : After your selection , At the bottom Generate font is Shown, Click on it.

Step 5 : On Next Screen at Bottom you will see Download Font. Download it.

Step 6 : Unzip the folder you will get demo.html File Open it.
You will see view like code and font. Just Write it in your file for details just checkout the code which is provided with This LINK.

Step 7 : Drag and Drop Font into Xcode of your project . and in plist write down like below

Step 8 : Include font in compile sources too.


Step 9 : How to use is explained in LINK attached Code which is written in Swift2.




Share:

0 comments:

Post a Comment