Skip to content

CropViewController shows in Dark mode regardless of device default setting #613

@ghb101

Description

@ghb101

Describe the bug
Both on MacOS (with macCatalyst) and iPhone, when the crop View is shown, it is always in dark mode, even if the device is set to light mode. In the case of the device being set to light mode, the crop view is dark, but the buttons for Done, Cancel, rotate are not visible since they are shown in dark font. The work around is to add cropViewController.overrideUserInterfaceStyle = .dark before presenting the cropview and then the buttons show up light. However, I would expect the cropview to respect the device light/dark behavior.

To Reproduce
Steps to reproduce the behavior:
Present cropview to edit an existing image when device is set to light mode.
See that cropview presents in dark mode and the Done, Cancel and rotate buttons are all too dark too view.

Expected behavior
I would expect the cropview to respect the device light/dark behavior and not always present in dark mode.

Screenshots

Image

iOS Device:

  • Device: Macbook Air, iPhone 16 Pro Max
  • OS: macOS 15.6, iOS 18.6
  • Library Version [e.g. 22]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions