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.3.0
Banner SDK
⭐️ 0
🕓 2 weeks ago
.package(url: "https://github.com/OriMedallia/MDBanner.git", from: "0.3.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: 2 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Related Packages

Release Notes

0.3.0
2 weeks ago

SPM

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