Skip to content

Tests using usesDrawViewHierarchyInRect are failing on 26.2 simulators #205

@TimofeiKarpovR

Description

@TimofeiKarpovR

Using usesDrawViewHierarchyInRect with the iOS 26.2 simulator results in a failing snapshot test with

failed - Snapshot comparison failed: "Images different"

and the following warning in the logs

CGBitmapContextInfoCreate: CGColorSpace which uses extended range requires floating point or CIF10 bitmap context

Demo app:
https://github.com/TimofeiKarpovR/SnapshotTesting-color-space-issue-demo/

The failure occurs while creating the image context here:

CGContextRef imageContext = CGBitmapContextCreate(imagePixels,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions