Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 1.41 KB

README.md

File metadata and controls

27 lines (16 loc) · 1.41 KB

TestSnapshotHostApplication

This is a sample project to show some weird behaviour with snapshot testing on a framework target.

The issue

The issue is that setting the host application of the framework testing target adds some additional top padding. But this is only the case for some simulators.

Without host application

Without the host application set on the framework testing target the top padding is set correctly independent of the used simulator.

iPhone 11 (14.5) simulator

iPhone 11 (14.5)

iPhone SE (2nd generation) (14.5) simulator

iPhone SE (2nd generation) (14.5)

With host application

With the host application set on the framework testing target the top padding is set incorrectly but depending on the used simulator.

iPhone 11 (14.5) simulator

iPhone 11 (14.5)

iPhone SE (2nd generation) (14.5) simulator

iPhone SE (2nd generation) (14.5)