Giter VIP home page Giter VIP logo

glinapppurchase's Introduction

GLInAppPurchase

CI Status Version License Platform

overView overView overView overView

Example

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

Requirements

Installation

CocoaPods

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

Manual

Copy the file GLInAppPurchaseUI.swift & GLInAppPurchaseUI.xib from ~/GLNotificationBar/GLNotificationBar/Classes to your project.

pod "GLInAppPurchase"

User Guide

Swift:

let appBanner = GLInAppPurchaseUI(title: "Skip The Line", subTitle: "Be first in the queue", bannerBackGroundStyle: .TransparentStyle)

//Add image and Discription
appBanner.displayContent(imageSetWithDescription:
[
UIImage(named:"IMG_1")!:"Rewind Your Last Swipe##Go back and swipe again",
UIImage(named:"IMG_2")!:"",
UIImage(named:"IMG_3")!:"Send More Super Likes##Let them know you are interested",
])

//Add Button Action
appBanner.addAction(GLInAppAction(title: "10", subTitle: "Boosts", price: "₹155.00/ea", handler: { (actin) in
print("Completion handler called \(actin.actionSubTitle) Boost For \(actin.actionPrice)")
}))
appBanner.addAction(GLInAppAction(title: "5", subTitle: "Boosts", price: "₹184.00/ea", handler: { (action) in
print("Completion handler called \(action.actionSubTitle) Boost For \(action.actionPrice)")
}))

appBanner.addAction(GLInAppAction(title: "1", subTitle: "Boosts", price: "₹250.00/ea", handler: { (action) in
print("Completion handler called \(action.actionSubTitle) Boost For \(action.actionPrice)")
}))

//Button & Background Theme
appBanner.setBannerTheme([UIColor.whiteColor()], headerTextColor: UIColor.blackColor())
appBanner.setButtomTheme([UIColor.blueColor(),UIColor(netHex:0x2375F8)], buttonTextColor: UIColor.whiteColor())

//Set Okay and Cancel Button Title
appBanner.addButtonWith("BOOST ME", cancelTitle: "NO, THANKS") { (str) in
print(str)
if str == "NO, THANKS" {
}
appBanner.dismissBanner()
self.showSimpleAlert("\(str) Button Clicked")
}

appBanner.presentBanner()

Author

gokulgovind, [email protected]

License

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

glinapppurchase's People

Contributors

gokulgovind avatar

Watchers

James Cloos avatar Carabineiro avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.