ToastSwift is a lightweight and user-friendly library written in Swift for creating stunning toast notifications in iOS applications.
- Easy to integrate into any Swift project.
- Offers customizable toast messages.
- Lightweight and efficient.
- Xcode 12.0 or later
- iOS 12.0 or later
- Swift 5.0 or later
- Clone this repository:
git clone https://github.com/JerwinPRO/ToastSwift.git
- Add
ToastSwiftto your project.
- In Xcode, go to
File > Swift Packages > Add Package Dependency. - Enter the repository URL:
https://github.com/JerwinPRO/ToastSwift. - Follow the prompts to complete the installation.
To display a simple toast notification:
import ToastSwift
Toast.show(message: "This is a test toast", duration: 2.0)You can customize the appearance of the toast by specifying options like background color, text color, and position.
import ToastSwift
let options = ToastOptions(
backgroundColor: UIColor.black,
textColor: UIColor.white,
position: .bottom
)
Toast.show(message: "Custom Toast", options: options, duration: 3.0)Contributions are welcome! To contribute:
- Fork the repository.
- Create a feature branch:
git checkout -b feature-name. - Commit your changes:
git commit -m 'Add new feature'. - Push to the branch:
git push origin feature-name. - Open a pull request.
This project is currently not licensed. For any usage, please contact the repository owner.
For questions or support, please create an issue in the repository or reach out to JerwinPRO.