Automattic / Gridicons-iOS

Gridicons is a tiny framework which generates Gridicon images at any resolution.
GNU General Public License v2.0
25 stars 12 forks source link

1.0 Release and API update #48

Closed frosty closed 4 years ago

frosty commented 4 years ago

This PR updates Gridicons to a 1.0 release number, and updates the API:

Getting an image of a Gridicon is now a case of doing:

let icon = UIImage.gridicon(.pages)

With type inference, this can be shortened further:

icon = .gridicon(.pages)

You can still optionally specify a size:

let icon = UIImage.gridicon(.pages, size: CGSize(width: 100, height: 100))

To test

You can also run and verify the associated WPiOS PR (link coming shortly).