Banner SDK
Example for how to use the APIs:
MDBannerView.setBannerViewDelegate(self)
MDBannerView.showBanner(title: "title",
message: "message",
textColor: .brown,
backgroundColor: .white,
position: .top,
timeout: nil,
acceptButtonText: "OK",
acceptButtonTextColor: .cyan,
acceptButtonBackgroundColor: .darkGray,
closeButtonColor: .black,
buttonsDisplay: false,
isSticky: false,
isPartial: true)
func bannerDidDismiss() {
print("bannerDidDismiss")
}
func acceptButtonDidTap() {
print("acceptButtonDidTap")
}
func closeButtonDidTap() {
print("closeButtonDidTap")
}
You can also use the showBanner API with default values:
MDBannerView.showBanner(title: "title",
message: "message")
link |
Stars: 0 |
Last commit: 1 year ago |
Added swift version to the podspec
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics