Use Ionicons in you swift projects. The similar to FontAwesome.swift
- Drag and drop
Ionicons.ttf
andIonicons.swift
files into your project
label.font = UIFont.ioniconOfSize(200)
label.text = String.ioniconWithName(Ionicons.SocialGithub)
let attributes = [NSFontAttributeName: UIFont.ioniconOfSize(20)] as Dictionary!
label.font = UIFont.ioniconOfSize(200)
label.text = String.ioniconWithCode("ion-alert")
button.titleLabel?.font = UIFont.ioniconOfSize(30)
button.setTitle(String.ioniconWithName(.SocialGithub), forState: .Normal)
leftBarButton.setTitleTextAttributes(attributes, forState: .Normal)
leftBarButton.title = String.ioniconWithName(.SocialGithub)
toolbarItem.setTitleTextAttributes(attributes, forState: .Normal)
toolbarItem.title = String.ioniconWithName(.SocialGithub)
iOS 7 or later.