A very simple yet nice looking style messages/notifications for iOS 7+.
Drag the Sources folder to your xcode project.
And then use:
@IBAction func presentLuna(_ sender: Any) {
let luna = Luna()
// Set Luna properties
luna.setLuna(inView: self.view, title: "Introducing our new football notifications on the Guardian app", message: "Today we are excited to announce the launch of our new and improved football notifications in our latest update to the Guardian app.", dissmiss: 2)
// Add luna to your view
self.view.addSubview(luna)
}
Parameters | Definition 🍉 | Required ✅ |
---|---|---|
InView | Usually means the view you're going to add Luna into. self.view works on ViewControllers | Required ✅ |
title | Bold-looking UILabel used as your notification Title | Required ✅ |
message | Your notification message | Required ✅ |
dissmiss | For how many seconds should your message be visible? | Required ✅ |
You can see existing and add new feature proposals on the projects GitHub page. Pull requests are welcome!
- Adding UITapGesture
- Buttons
- More Styles
- Customizable alert
If you need any assistance or find any bugs, feel free to contact me directly via email or create a new issue on the GitHub page.