https://github.com/rawandahmad698/luna
A very simple yet nice looking messages/notifications bar for iOS 11+.
https://github.com/rawandahmad698/luna
alertview notifications swift swift4
Last synced: 10 months ago
JSON representation
A very simple yet nice looking messages/notifications bar for iOS 11+.
- Host: GitHub
- URL: https://github.com/rawandahmad698/luna
- Owner: rawandahmad698
- Created: 2018-07-12T07:41:14.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-07-16T17:55:59.000Z (almost 7 years ago)
- Last Synced: 2025-08-22T06:57:02.667Z (11 months ago)
- Topics: alertview, notifications, swift, swift4
- Language: Swift
- Homepage:
- Size: 18.6 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# Luna
A very simple yet nice looking style messages/notifications for iOS 7+.
### iPhone 6s / Landscape **GIF**
 
### iPhone X / Landscape **GIF**


### iPad Pro

## Getting Started
Drag the **Sources** folder to your xcode project.
And then use:
```swift
@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 ✅|
## Future plans
You can see existing and add new feature proposals on the projects GitHub page.
Pull requests are welcome!
#### Roadmap
+ Adding UITapGesture
+ Buttons
+ More Styles
+ Customizable alert
## Support
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.