hansemannn / titanium-image-crop

An easy to use iOS image cropping tool based on TOCropViewController.
MIT License
40 stars 5 forks source link

StatusBar Styling #7

Open designbymind opened 3 months ago

designbymind commented 3 months ago

iOS 17+ automatically updates the StatusBar color according to the contrast beneath. This is the default functionality of the default styling option. This is great as it removes the headache of needing to update the StatusBar each time the developer wants to use a lighter/darker background. — More info here.

When completing an image crop and after the image crop controller is hidden, the StatusBar continues to use the lightContent option. — Is there anyway to change that functionality (to use the default option) or provide a way to set the StatusBar styling by passing a property to module?

hansemannn commented 3 months ago

The CropViewController extends UIViewController, so you could add the status bar override around here.

designbymind commented 3 months ago

Thank you, @hansemannn 🙂