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

Add iPhone 14 Pro/Pro Max to SnapshotDevice definitions #51

Merged
merged 1 commit into from
Feb 16, 2023
Merged

Add iPhone 14 Pro/Pro Max to SnapshotDevice definitions #51

merged 1 commit into from
Feb 16, 2023

Conversation

akkyie
Copy link
Contributor

@akkyie akkyie commented Feb 16, 2023

Checklist

  • All tests are passed.
  • Added tests or Playbook scenario.
    • No test changed but tested locally
  • Documented the code using Xcode markup.
  • Searched existing pull requests for ensure not duplicated.

Description

Since iPhone 14 Pro and Pro Max have different geometry than previously defined devices such as iPhone 12 Pro/Pro Max, I added new definitions of them to SnapshotDevice.
Resolutions and safe area insets are measured manually. Resolutions are also confirmed with https://iosref.com/res.

Related Issue

Motivation and Context

Screenshots

One example taken from SnapshotTests

iPhone 14 Pro iPhone 11 Pro

Copy link
Member

@ra1028 ra1028 left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @akkyie !

@ra1028 ra1028 merged commit 919966f into playbook-ui:master Feb 16, 2023
@ra1028
Copy link
Member

ra1028 commented Feb 16, 2023

Released at https://github.com/playbook-ui/playbook-ios/releases/tag/0.3.3

@akkyie
Copy link
Contributor Author

akkyie commented Feb 17, 2023

@ra1028 Thank you for quick review and release!
Could you also take a look at the failing action to release the pod? 🙏
https://github.com/playbook-ui/playbook-ios/actions/runs/4192121812

@ra1028
Copy link
Member

ra1028 commented Feb 17, 2023

@akkyie
Published manually. Note that Cocoapods will no longer be supported so long from now as we're planning to drop support for it.

@akkyie
Copy link
Contributor Author

akkyie commented Feb 17, 2023

@ra1028 Appreciate it! I see, will consider switching to use of SPM. Thanks for letting me know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants