Monday 20 March 2017

Apply font awesome styles in iOS swift 3


step 1 : download font awesome ttf file 
https://github.com/FortAwesome/Font-Awesome/blob/master/fonts/fontawesome-webfont.ttf

Step 2 : copy it into project 



Step 3 : set font awesome ttf file into "info" file



Step 4: set font awsome ttf file into Build Phases --> Copy Bundle Resources




step 5 : apply font styles to button



step 6 : 

  • use different type of icon codes


  • Icon names 
http://fontawesome.io/icons/













No comments:

Post a Comment

Remove bottom line in navigation bar

navigationController ?. navigationBar . setBackgroundImage ( UIImage (), for: . any , barMetrics: . default )          navigat...