https://github.com/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.
https://github.com/bibinjacobpulickal/bbtoast
Last synced: about 2 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/bibinjacobpulickal/bbtoast
- Owner: bibinjacobpulickal
- License: mit
- Created: 2020-05-16T16:18:57.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-05T07:23:09.000Z (almost 5 years ago)
- Last Synced: 2024-10-15T00:09:40.467Z (8 months ago)
- Language: Swift
- Size: 841 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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

[](https://www.apple.com/in/macos/catalina/)
[](https://developer.apple.com/xcode/)
[](https://developer.apple.com/swift/)---
## Code```swift
import UIKit
import BBToastclass 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
Animation
Dark Mode
Light Mode
![]()
![]()
![]()
---
## Installation### Swift Package Manager
The [Swift Package Manager](https://swift.org/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`.
```swift
dependencies: [
.package(url: "https://github.com/bibinjacobpulickal/BBToast.git", .upToNextMajor(from: "1.0.0"))
]
```---
## LicenseBBToast is released under the MIT license. [See LICENSE](https://github.com/bibinjacobpulickal/BBToast/blob/master/LICENSE) for details.