CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.

AWBanner 0.1.6

AWBanner 0.1.6

TestsTested βœ—
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Nov 2015
SPMSupports SPM βœ—

Maintained by Aymen Rebouh.



AWBanner 0.1.6

AWBanner

An easy, customizable and soft swift banner notification for iOS applications.

An easy, customizable and soft swift banner notification for iOS applications. AWBanner library provides an easy to use class to show a banner view on the screen ( wherever you want, you can specify the Y origin ).

The banner moves from the Y origin ( default 0, but you can change it πŸ‘) and stays there until the duration you choose elapse ( Personally I choose in general 2.5s ). To dismiss the banner before the time elapse, the user can tap it.

Requirements

guard ios >= 7 else { return }

Installation

Manually

Simply drag and drop the AWBANNER.swift file to your project.

Usage

To show the banner, use the following code :

AWBanner.showWithDuration(2.5,
delay: 0.0,
message: NSLocalizedString("πŸ•’The reminder has been successfully scheduled.", comment: "Banner title that informs the user the notification has been successfully scheduled"),
backgroundColor: ThemeManager.currentTheme.mainColor,
textColor: UIColor.whiteColor())
}

// Or if you want to choose where it comes from, add the last parameter yOrigin, like :

AWBanner.showWithDuration(2.5,
delay: 0.0,
message: NSLocalizedString("πŸ•’The reminder has been successfully scheduled.", comment: "Banner title that informs the user the notification has been successfully scheduled"),
backgroundColor: ThemeManager.currentTheme.mainColor,
textColor: UIColor.whiteColor(),
originY: 40.0)
}

Author

Rebouh Aymen, [email protected]

Twitter @aymenworks

License

AWBanner is available under the MIT license. See the LICENSE file for more info.