Swiftpack.co - estampworld/ios-toast-alerts as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by estampworld.
estampworld/ios-toast-alerts 3.0.0
A framework to display Toast Alerts in IOS.
⭐️ 15
🕓 2 years ago
iOS
.package(url: "https://github.com/estampworld/ios-toast-alerts.git", from: "3.0.0")

Toast Alert View

Swift Package Manager compatible Carthage compatible

Build Status

codebeat badge

A framework to display Toast Alerts in IOS.

More Info

Features

  • Toast View with Message & Image
  • Toast View with Time Dismiss
  • Toast View with Tap Dismiss
  • Custom Toast View

Install

Swift Package Manager

Adding it to an existent iOS Project via Swift Package Manager

Carthage

Add the following line to your Cartfile:

github "estampworld/ios-toast-alerts"

Run carthage update

Cocoapods

Add the pod to your Podfile:

pod 'toastalerts'

And then run:

pod install

Usage

Swift

Toast Alert View with Message & Image

Show a Toast Alert with message and icon using ToastAlertView Object

let toastAlertView =  ToastAlertView(message: "Hey!", image: UIImage(named: "Cat Icon")!)
toastAlertView.show()

Toast Alert View with Time Dissmis Only

//Toast Alert View with Time Dissmis Only
let toastAlertView = ToastAlertView(message: "4 Seconds", image: UIImage(systemName: "flame")!, hideWithType: .time(time: 4))
toastAlertView.show()

Custom Toast Alert View Show

//Custom EW Toast Alert View
let toastAlertView = ToastAlertView()
toastAlertView.message = "Example"
toastAlertView.image = UIImage(named: "img1")!
toastAlertView.show()
//toastAlertView.dismiss() to Hide

Examples

Example

Maintainers

Eduardo Irias, creator.

Contributing

  1. Fork it ( https://github.com/[my-github-username]/ios-toast-alerts/fork )
  2. Create your feature branch (git checkout -b feature/[my-new-feature])
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin feature/[my-new-feature])
  5. Create a new Pull Request

License

Toast Alert Views is available under the MIT license. See the LICENSE file for more info.

GitHub

link
Stars: 15
Last commit: 2 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

3.0
4 years ago
  • Migrate Library from Objective to Swift.
  • Add support for Swift Package Manager
  • Add support for Mac Catalyst
  • Add support for Cocoapods
  • Removed support for images animation

Enjoy

ヽ( ˘з˘ )ゝ

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