Skip to content

Blank screen on visionOS #627

@huven

Description

@huven

Describe the bug
Presenting TOCropViewController on visionOS shows a blank screen only (see screenshot below).

To Reproduce
Same code is used that works without issue on iOS

    TOCropViewController *cropViewController = [[TOCropViewController alloc] initWithImage:image];
    cropViewController.delegate = self;
    cropViewController.doneButtonTitle = NSLocalizedString(@"Save", nil);
    cropViewController.doneButtonColor = [[self view] tintColor];
    cropViewController.toolbarPosition = TOCropViewControllerToolbarPositionTop;
    [self presentViewController:cropViewController animated:YES completion:nil];

Expected behavior
I expected to see the image provided to TOCropViewController.

Screenshots

Image

iOS Device:

  • Device: Vision Pro (simulator)
  • OS: visionOS 26.0
  • Library Version 3.1.0

Additional context
The console shows these messages that might be related

Instructed to remove hit test redirection, but it was already removed
Snapshotting a view (0x117f68520, TOCropToolbar) that has not been rendered at least once requires afterScreenUpdates:YES.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions