pointfreeco / swift-snapshot-testing

📸 Delightful Swift snapshot testing.
https://www.pointfree.co/episodes/ep41-a-tour-of-snapshot-testing
MIT License
3.68k stars 556 forks source link

How to snapshot on special iOS version? #823

Closed davidhu001 closed 6 months ago

davidhu001 commented 6 months ago

SnapshotTesting uses GitHub issues for bugs. For more general discussion and help, please use GitHub Discussions.

Hi @stephencelis @mdiep @gohanlon @ChristopherRogers @heckj I want to snapshot of a special iOS device and a special iOS OS version, but I find I only can do is set the special iOS device, but I can't set the special iOS OS version.

assertSnapshots( of: hostingController, as: [ "ipad": .image(on: .iPadPro12_9), "iphoneSe": .image(on: .iPhoneSe), "iphone8": .image(on: .iPhone8), "iphoneMax": .image(on: .iPhoneXsMax), ]) I got above this from the Demo, But I haven't found any OK solution for adding the special OS version.

Could you give me some advice so that I can set up the special OS version?

Thank you very much.

mbrandonw commented 6 months ago

Hi @davidhu001, this is not an issue with the library and so I am converting it to a discussion.