-
Using cocoapods
pod "SHSnackBarView"
-
Or drag and drop SHSnackBarView.xcodeproj to your project
1.import SHSnackBarView
2.create a object of snackbar
Eg: let snackbarView = snackBar()
3.use show function to show the snackbar view
Eg: snackbarView.showSnackBar(view: self.view, bgColor: UIColor.gary, text: "This is a snackbar view", textColor: UIColor.white, interval: 2)
Download and checkout example project