BastiaanJansen / toast-swift

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

Custom toast view #14

Closed Maverick1000 closed 1 year ago

Maverick1000 commented 1 year ago

On your code page you have an example for CustomToastView, could you add some sample code of what would go into the func createView(for toast: Toast).

BastiaanJansen commented 1 year ago

Hi, @Maverick1000,

Toast class just expects a ToastView, which can be any view as long as it implements the ToastView protocol. You could look at this file to see how the default toast view is made.