InitialsImageView icon indicating copy to clipboard operation
InitialsImageView copied to clipboard

Add Dark Mode support

Open ohetzendorfer opened this issue 5 years ago • 2 comments

Hi, first of all, thank you for this library :)

Currently the background color doesn't get updated if the user switches between light and dark mode. This is because of using cgColor, which doesn't automatically update.

ohetzendorfer avatar Nov 07 '19 09:11 ohetzendorfer

Hey @omastny, thanks for your support. I'm guessing that you would expect lighter background colors with black text in a dark mode setting?

bachonk avatar Nov 10 '19 20:11 bachonk

Hi @bachonk,

this is already working if a view is initial loaded. But if a switch happens on the current view between dark and light, the color doesn't get updated.

Like described here "Update Custom Views Using Specific Methods" -> https://developer.apple.com/documentation/appkit/supporting_dark_mode_in_your_interface/

ohetzendorfer avatar Nov 11 '19 13:11 ohetzendorfer