Swiftpack.co -  omaralbeik/Drops as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
omaralbeik/Drops
A µFramework for showing alerts like the one used when copying from pasteboard or connecting Apple pencil
.package(url: "https://github.com/omaralbeik/Drops.git", from: "0.5.0")

Drops 💧

A µFramework for showing iOS 13 like alerts.

Demo


CI codecov SPM compatible

Features / Todos

  • ☑ iOS 11+
  • ☑ UIKit/SwiftUI support
  • ☑ Light/dark mode
  • ☑ Show with custom duration
  • ☑ Show from top or buttom of screen
  • ☑ Interactive dismissal
  • ☑ Queue multiple drops
  • ☑ Add basic CI with Github Actions
  • ☐ VoiceOver support
  • ☐ Accessibility checkup
  • ☐ Add more tests

Usage

  1. Create a drop:
let drop = Drop(title: "Title", subtitle: "Subtitle")
  1. Show it:
Drops.show(drop)

Read the docs for more usage options.


Example Projects

  • Run the SwiftUIExample target to see how Drops works in SwiftUI applications.
  • Run the UIKitExample target to see how Drops works in UIKit applications.

Example


Installation

Swift Package Manager

The Swift Package Manager is a tool for managing the distribution of Swift code.

  1. Add the following to your Package.swift file:
dependencies: [
    .package(url: "https://github.com/omaralbeik/Drops.git", from: "0.5.0")
]
  1. Build your project:
$ swift build

Thanks

Special thanks to SwiftKickMobile team for creating SwiftMessages, this project was heavily inspired by their work.


License

Drops is released under the MIT license. See LICENSE for more information.

GitHub

link
Stars: 25
Last commit: 20 hours ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

0.5.0
20 hours ago

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