https://github.com/fanta1ty/tsnackbarview
TSnackBarView is a simple and flexible UI component fully written in Swift. TSnackBarView helps you to show snackbar easily with 3 styles: normal, successful and error
https://github.com/fanta1ty/tsnackbarview
cocoapods framework ios ios10 snack snackbar swift swift5 uikit view
Last synced: 16 days ago
JSON representation
TSnackBarView is a simple and flexible UI component fully written in Swift. TSnackBarView helps you to show snackbar easily with 3 styles: normal, successful and error
- Host: GitHub
- URL: https://github.com/fanta1ty/tsnackbarview
- Owner: fanta1ty
- License: mit
- Created: 2022-08-18T14:05:39.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-08-18T14:14:40.000Z (about 3 years ago)
- Last Synced: 2025-09-16T19:50:33.325Z (about 1 month ago)
- Topics: cocoapods, framework, ios, ios10, snack, snackbar, swift, swift5, uikit, view
- Language: Swift
- Homepage:
- Size: 259 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# TSnackBarView
TSnackBarView is a simple and flexible UI component fully written in Swift.
TSnackBarView helps you to show snackbar easily with 3 styles: normal, successful and error
[](https://developer.apple.com/swift/)
[](https://cocoapods.org/pods/TSnackBarView)
[](https://cocoapods.org/pods/TSnackBarView)
[](https://cocoapods.org/pods/TSnackBarView)
[](thinhnguyen12389@gmail.com)
## Example
To run the example project, clone the repo, and run `pod install` from the Example directory first.
## Requirements
## Installation
TSnackBarView is available through [CocoaPods](https://cocoapods.org). To install
it, simply add the following line to your Podfile:
```ruby
pod 'TSnackBarView'
```
## Usage
```swift
import TSnackBarView
```
To show ``TSnackBarView`` with a normal message:
```swift
TSnackBarServiceImpl.shared.show(on: view,
message: "Normal SnackBar View\nPlease use Normal SnackBar View for displaying normal text message.",
onTapCloseAction: { snackBarView in
snackBarView.dismiss()
})
```
To show ``TSnackBarView`` with a successfull message:
```swift
TSnackBarServiceImpl.shared.show(on: view,
message: "Success SnackBar View\nPlease use Success SnackBar View for displaying success text message.",
style: .success,
onTapCloseAction: { snackBarView in
snackBarView.dismiss()
})
```
To show ``TSnackBarView`` with a error message:
```swift
TSnackBarServiceImpl.shared.show(on: view,
message: "Error SnackBar View\nPlease use Error SnackBar View for displaying error text message.",
style: .error,
onTapCloseAction: { snackBarView in
snackBarView.dismiss()
})
```

## Requirements
- iOS 10.0 or later
- Swift 5.0 or later
## Author
fanta1ty, thinhnguyen12389@gmail.com
## License
TSnackBarView is available under the MIT license. See the LICENSE file for more info.