Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yudiz-solutions/yztoastview
https://github.com/yudiz-solutions/yztoastview
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/yudiz-solutions/yztoastview
- Owner: yudiz-solutions
- Created: 2023-11-07T12:48:55.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-20T06:07:47.000Z (11 months ago)
- Last Synced: 2024-02-20T07:25:54.585Z (11 months ago)
- Language: Swift
- Size: 79.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# YZToastView
**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.
## Features
- Display toast messages with a customizable background color, text color, and message.
- Easily integrate into your iOS project to provide non-intrusive notifications.## Usage
- To display a toast message, simply call the
```
YZToastView.shared.show(withMessage: "This is a toast message",inView: view,bgColor: .red, textColor: .white)
```## Parameters
- 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