Automating screenshots with fastlane
2026-07-21
Capturing dozens of device × language combinations by hand wastes time. fastlane automates it via UI tests.
iOS — snapshot
- Add
snapshot()calls to a UI test; it captures each screen. fastlane snapshotgenerates raw screenshots across all devices and languages.
Android — screengrab
- Call
Screengrab.screenshot()from Espresso tests; runfastlane screengrab.
Framing & design
fastlane's frameit adds a basic frame, but panorama layout, angle, theme and design control are limited. Batch-generate raw shots with fastlane, then turn them into a polished set in Vitrinshot and export at store sizes.