CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.
TestsTested | β |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Nov 2015 |
SPMSupports SPM | β |
Maintained by Aymen Rebouh.
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
guard ios >= 7 else { return }
Simply drag and drop the AWBANNER.swift
file to your project.
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)
}
Rebouh Aymen, [email protected]
Twitter @aymenworks
AWBanner is available under the MIT license. See the LICENSE file for more info.