Adding a way to add a built-in left and right margins to icon when used in attributed strings. This is specially convenient as when trying to combine an icon and label using NSAttributedString, so we avoid to use a hardcoded whitespace in the string.
The edge insets may also help for adjusting the icon's baseline, when using either top and bottom insets.
Right margin UIEdgeInsetsMake(0, 0, 0, 15):
Larger margin UIEdgeInsetsMake(0, 0, 0, 30):
This PR also includes a shiny new playground file, to test things quickly (this feature was expedited thanks to the playground). The playground imports the Iconic module using CocoaPods.
Closes #3
Adding a way to add a built-in left and right margins to icon when used in attributed strings. This is specially convenient as when trying to combine an icon and label using NSAttributedString, so we avoid to use a hardcoded whitespace in the string. The edge insets may also help for adjusting the icon's baseline, when using either top and bottom insets.
Right margin![bolt](https://cloud.githubusercontent.com/assets/590579/16361761/6b2d584c-3b4f-11e6-9601-52e78dd53cb8.png)
UIEdgeInsetsMake(0, 0, 0, 15)
:Larger margin![bolt](https://cloud.githubusercontent.com/assets/590579/16361773/aa46e7fa-3b4f-11e6-80f5-2e24e967e282.png)
UIEdgeInsetsMake(0, 0, 0, 30)
:This PR also includes a shiny new playground file, to test things quickly (this feature was expedited thanks to the playground). The playground imports the Iconic module using CocoaPods.