Closed Dave181295 closed 2 years ago
Right now, the system theme will be applied to the built-in toast views.
If you really want to change the theme programmatically, you could create your own view. For more information about using custom views: https://github.com/BastiaanJansen/Toast-Swift#custom-toast-view
(I think you could even extend the AppleToastView
class and change the background color, so you don't have to create the layout from scratch.)
@Dave181295
let toast = Toast(view: AppleToastView(
child: IconAppleToastView(image: image, imageTint: imageTint, title: title, subtitle: subtitle),
darkBackgroundColor: UIColor.black,
lightBackgroundColor: UIColor.black
), config: ToastConfiguration())
toast.show()
I don't see where I can apply the dark style toast, there is no parameters ?