Skip to content

Latest commit

 

History

History
65 lines (46 loc) · 2.66 KB

README.md

File metadata and controls

65 lines (46 loc) · 2.66 KB

SANotificationViews

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Swift 3.0+
Xcode 8.0+

Installation

SANotificationViews is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'SANotificationViews'

or add SANotificationViews.swift file into your project directory.

Usage

SAStatusView

ScreenShot

SANotificationView.showSAStatusBarBanner(message: "This is status bar banner...", backgroundColor: .black, textColor: .white, showTime: 2)

SATinybanner

ScreenShot

SANotificationView.showSATinyBanner(message: "Please wait while loading...😊", backgroundColor: .black, textColor: .white, showTime: 2)

SABanner

ScreenShot

SANotificationView.showSABanner(title: "V.S Achuthananthan", message: "V.S Achuthananthan just liked the post you shared", image: #imageLiteral(resourceName: "sampleImage"),  showTime: 3)

//show SABanner with background color and text color
SANotificationView.showSABanner(title: "V.S Achuthananthan", message: "V.S Achuthananthan just liked the post you shared", textColor: .black, image: #imageLiteral(resourceName: "sampleImage"), backgroundColor: .white, showTime: 3)

SAPermanentView

//Show view
 SANotificationView.showSATinyBanner(message: "Permanent Banner...😊", backgroundColor: .black, textColor: .white)
 
//Remove view
SANotificationView.removeSATinyBanner()

Author

shamshir.anees@gmail.com

License

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