YZToastView is a lightweight and easy-to-use Swift class for displaying toast messages in your iOS application. It provides a simple way to show brief messages or notifications to the user in a non-intrusive manner.
- Display toast messages with a customizable background color, text color, and message.
- Easily integrate into your iOS project to provide non-intrusive notifications.
- To display a toast message, simply call the
YZToastView.shared.show(withMessage: "This is a toast message",inView: view,bgColor: .red, textColor: .white)
- withMessage: The message to display in the toast.
- inView: The view to display the toast in.
- bgColor: The background color of the toast. default is green
- textColor: The text color of the toast. default is white