ivanvorobei / SPIndicator

Floating indicator, mimicrate to indicator which appear when silent mode switched. Can be present from top and bottom. Interactive with gesters.
https://opensource.ivanvorobei.io
MIT License
768 stars 48 forks source link

Using light vision in the dark mode #15

Closed shles closed 2 years ago

shles commented 2 years ago

Is there a way to set light/dark mode of the indicator independently from device or app settings?

shles commented 2 years ago

found a solution:

let view = SPIndicatorView(title: "Subscribe", message: "To access chat", preset: .custom(image))
view.overrideUserInterfaceStyle = .light
view.present()
shles commented 2 years ago

Might be cool to do it in general. Something like this:

SPIndicatorView.appearence().overrideUserInterfaceStyle = .light
ivanvorobei commented 2 years ago

Yes, exactly, its just view and you can override interface.