Swiftpack.co -  kvyatkovskys/KVKToast as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
kvyatkovskys/KVKToast
Toast for iOS
.package(url: "https://github.com/kvyatkovskys/KVKToast.git", from: "0.0.4")

CI Status Version Carthage SwiftPM compatible Platform License

KVKToast

Requirements

  • iOS 10.0+, iPadOS 10.0+, MacOS 10.15+ (Supports Mac Catalyst)
  • Swift 5.0+

Installation

KVKToast is available through CocoaPods or Carthage or Swift Package Manager.

CocoaPods

pod 'KVKToast'

Adding Pods to an Xcode project

Carthage

github "kvyatkovskys/KVKToast"

Adding Frameworks to an Xcode project

Swift Package Manager (Xcode 12 or higher)

  1. In Xcode navigate to FileSwift PackagesAdd Package Dependency...
  2. Select a project
  3. Paste the repository URL (https://github.com/kvyatkovskys/KVKToast.git) and click Next.
  4. For Rules, select Version (Up to Next Major) and click Next.
  5. Click Finish.

Adding Package Dependencies to Your App

Usage for UIKit

To display a toast

view.displayToast("Test")

To display a toast with parameters

view.displayToast("Test", 
                  message: "Description", 
                  image: image, 
                  position: .top,
                  type: .info, 
                  duration: 5)

To hide the latest toast immediately

view.hideToast()

To hide all toasts

view.hideAllToasts()

Style

Author

Sergei Kviatkovskii

License

KVKToast is available under the MIT license

GitHub

link
Stars: 0
Last commit: 4 days 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.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

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