skyweb07 / Snap.swift

Snapshot testing in a snap 🎨

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Image metadata differs depending if images are recorded under iOS 9 or iOS 10

ralfebert opened this issue · comments

UIImage+Render currently uses the old UIGraphicsBeginImageContextWithOptions API before iOS 10, and on iOS 10 it starts to use the new UIGraphicsImageRenderer.

Because of this, when you generate test images under iOS 9, the image metadata will differ from the metadata of test images under iOS 10.

My workaround is to only generate the image using the old API...