Skip to content

1.0.1

@doedje doedje tagged this 24 Oct 01:17
* changed to swift3 syntax

examples of old vs new syntax:

UIFont.fontAwesomeOfSize(100)
UIFont.fontAwesome(size: 100)

String.fontAwesomeWithName(FontAwesome.Github)
String.fontAwesome(name: FontAwesome.Github)

String.fontAwesomeWithCode("fa-github")
String.fontAwesome(code: "fa-github")

UIImage.fontAwesomeIconWithName(FontAwesome.Github, textColor: UIColor.blue, size: CGSize(width: 4000, height: 4000), backgroundColor: UIColor.red)
UIImage.fontAwesomeIcon(name: FontAwesome.Github, textColor: UIColor.blue, size: CGSize(width: 4000, height: 4000), backgroundColor: UIColor.red)

UIImage.fontAwesomeIconWithCode("fa-github", textColor: UIColor.blue, size: CGSize(width: 4000, height: 4000), backgroundColor: UIColor.red)
UIImage.fontAwesomeIcon(code: "fa-github", textColor: UIColor.blue, size: CGSize(width: 4000, height: 4000), backgroundColor: UIColor.red)

* fixed tabs to be 4 spaces...

* changed UIFont.fontAwesome to use ofSize parameter

This is more consistent with the UIFont API; like in UIFont.boldSystemFont(ofSize: 200)

* changed to lowerCamelCase for enum values

* fixes to the examples in README... ;)
Assets 2
Loading