Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

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