Swiftpack.co - OriMedallia/MDBanner as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by OriMedallia.
OriMedallia/MDBanner 0.5.0
Banner SDK
⭐️ 0
🕓 1 year ago
.package(url: "https://github.com/OriMedallia/MDBanner.git", from: "0.5.0")

MDBanner

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")

GitHub

link
Stars: 0
Last commit: 1 year ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Related Packages

Release Notes

0.4.0
1 year ago

Added swift version to the podspec

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics