BastiaanJansen / toast-swift

Customizable Swift Toast view built with UIKit. 🍞
MIT License
478 stars 77 forks source link

Update background color when switching between light and dark mode. #5

Closed Zandor300 closed 2 years ago

Zandor300 commented 2 years ago

Before, when switching between light and dark mode, the Toast's background color stayed the same. Now it will switch to the correct background color while it is being shown.

The default title color is UIColor.label which would update during the switch, but the background color wouldn't. This resulted in unreadable text.