Contents

bibinjacobpulickal/BBToast

Simple toast with text using BBToast. BBToast is a light-weight minimal looking toast build on top of UIKit for iOS and tvOS. This doesn't obsruct user interaction like while showing a UIAlertController. Package is compiled using Xcode 11.0 on MacOS 10.15 using Swift 5.1.

Support

[Platform] [[iOS]](https://www.apple.com/in/macos/catalina/) [[Xcode]](https://developer.apple.com/xcode/) [[Swift]](https://developer.apple.com/swift/)


Code

import UIKit
import BBToast

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        showBBToast("This is a toast message.", duration: 2) { toast in
            toast.backgroundColor = Color.allCases[self.selectedBackgroundColorIndex].color
            toast.textColor       = Color.allCases[self.selectedTextColorIndex].color
        }
    }
}

Working Example

<table> <tr> <td>Animation</td> <td>Dark Mode</td> <td>Light Mode</td> </tr> <tr> <td><img src="Screenshots/BBToastAnimation.gif" width=300 height=600></td> <td><img src="Screenshots/BBToastDark.png" width=300 height=600></td> <td><img src="Screenshots/BBToastLight.png" width=300 height=600></td> </tr> </table>

--- ## Installation

### Swift Package Manager

The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler. It is in early development, but Alamofire does support its use on supported platforms.

Once you have your Swift package set up, adding Alamofire as a dependency is as easy as adding it to the dependencies value of your Package.swift.

dependencies: [
    .package(url: "https://github.com/bibinjacobpulickal/BBToast.git", .upToNextMajor(from: "1.0.0"))
]

License

BBToast is released under the MIT license. See LICENSE for details.

Package Metadata

Repository: bibinjacobpulickal/BBToast

Stars: 3

Forks: 2

Open issues: 0

Default branch: master

Primary language: swift

License: MIT

README: README.md