Swiftpack.co - kvyatkovskys/KVKToast as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by kvyatkovskys.
kvyatkovskys/KVKToast 0.0.4
Toast for iOS
⭐️ 1
🕓 2 years ago
iOS macOS
.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: 1
Last commit: 2 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

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