Swiftpack.co -  Package - nicephoton/NiceNotifications
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
nicephoton/NiceNotifications
Create rich local notifications experiences on iOS with incredible ease
.package(url: "https://github.com/nicephoton/NiceNotifications.git", from: "0.0.1-alpha")

NiceNotifications

Nice Photon is available for hire! Talk to us if you have any iOS app development needs. We have 10+ years of experience making iOS apps for top Silicon Valley companies. Reach out at hi@nicephoton.com

NiceNotifications reimagines local notifications on Apple platforms.

It gives developers a new way to manage notification scheduling, permissions and grouping.

At its most basic form, it helps to schedule local notifications easily, in a declarative way.

At its most advanced, it introduces a whole new way of looking at local notifications, with the concept of "Notification Timelines", similar to WidgetKit or ClockKit APIs.

Built at Nice Photon.
Maintainer: @dreymonde

As of now, NiceNotifications is in early beta. Some APIs is likely to change between releases. Breaking changes are to be expected. Feedback on the API is very welcome!

Usage

import NiceNotifications

LocalNotifications.schedule(permissionStrategy: .askSystemPermissionIfNeeded) {
    EveryMonth(forMonths: 12, starting: .thisMonth)
        .first(.friday)
        .at(hour: 20, minute: 15)
        .schedule(title: "First Friday", body: "Oakland let's go!")
}

Guide

WIP

Installation

Swift Package Manager

  1. Click File → Swift Packages → Add Package Dependency.
  2. Enter http://github.com/nicephoton/NiceNotifications.git

Acknowledgments

Built at Nice Photon

Special thanks to:

  • @camanjj for his valuable feedback on the API

GitHub

link
Stars: 1
Last commit: 4 weeks ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco