Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.0 Release and API update #48

Merged
merged 3 commits into from
Mar 19, 2020
Merged

1.0 Release and API update #48

merged 3 commits into from
Mar 19, 2020

Conversation

frosty
Copy link
Contributor

@frosty frosty commented Mar 18, 2020

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

  • Build and run the demo app and ensure the icons still appear
  • Check that tests still pass

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

@frosty frosty added this to the 1.0 milestone Mar 18, 2020
Copy link
Contributor

@mindgraffiti mindgraffiti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔢 1 suggestion, totally up to you!
✅ Code
✅ Tested against example app
✅ Tested against WPiOS

@@ -69,7 +69,7 @@ extension ViewController: UICollectionViewDataSource {
func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On Line 52 of this class, if you add:

stepper.stepValue = value == 18 ? 6 : 12

It will also solve issue #3.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks :) I think I'll leave this for this PR, but we can always look at solutions in the future.

@frosty frosty merged commit b0572a9 into develop Mar 19, 2020
@loremattei loremattei deleted the release/1.0 branch March 23, 2020 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants