amirrajan / rubymotion-applied

RubyMotion documentation provided by the community. Submit a pull request to the docs for a free one year indie subscription.
Apache License 2.0
49 stars 10 forks source link

Take screenshot across devices to make sure ui layouts look good on all device sizes #97

Open amirrajan opened 6 years ago

amirrajan commented 6 years ago

Maybe grid layout, rulers, etc.

hboon commented 6 years ago

Screenshots for the app store? Or taking screenshot in-app?

amirrajan commented 6 years ago

For a bit more context, we usually test in the simulator on one device size, but it would be nice if other devices were spun up (almost in a headless mode), and a screenshot taken of the "other" devices so you can see at a glance if everything lines up okay.

hboon commented 6 years ago

I thought about this but not sure if it's feasible:

Test on the biggest device (iPad Pro if universal, else iPhone 8/X) and then having a command to reduce the size of the UIWindow to match the screen sizes of smaller devices. If the UI is coded correctly, we ought to be able to test all the screen sizes easily.

amirrajan commented 6 years ago

I wonder if you can fit an iPhone 8/X/and 5 in one iPad. Have the same UI view show up in the simulator in three side by side subviews 😬