Closed Eric0625 closed 3 years ago
You can supply your own colors that adapt to interface style by calling:
MessageView.configureTheme(backgroundColor:foregroundColor:iconImage:iconText:)
You can supply your own colors that adapt to interface style by calling:
MessageView.configureTheme(backgroundColor:foregroundColor:iconImage:iconText:)
I think I've found it, just set MessageView.overrideUserInterfaceStyle
to the desired style and it's done.
OK, sorry I misread what your problem was. Your message is probably being displayed in its own window and it isn't the key window.
There's a setting for this already – see SwiftMessages.Config.overrideUserInterfaceStyle
. But what you did seems fine too.
Thanks
XCode version: 12.5.1 (12E507) Platform: iOS 14.5 SwiftMessage version: 9.0.2
Hi there. It seems that the appearance of the SwiftMessage is following the system's colour style. It does not comply with the application's
overrideUserInterfaceStyle
attribute. Below is the code I used, it works for the rest of the app's interface except SwiftMessage views. Thanks.