Latest 1.1.3
Homepage https://github.com/gokulgovind/GLInAppPurchase
License MIT
Platforms ios 8.0
Frameworks UIKit
Authors

CI Status
Version
License
Platform

overView overView
overView overView

FYI: Use tag0.1.2 for swift 2.2

Example

To run the example project, clone the repo, and run pod install from the Example directory first.Compatiable with ObjC,Swift 2 & Swift 3.0

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.

Latest podspec

{
    "name": "GLInAppPurchase",
    "version": "1.1.3",
    "summary": "GLInAppPurchase allows user to use "Tinder InAppPurchase UI" in their App with minimal code.",
    "description": "GLInAppPurchase is an open source library lets user to make use of Tinder styled inApp Purchase UI, It can also be used as alternative for UIAlertController.",
    "homepage": "https://github.com/gokulgovind/GLInAppPurchase",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "gokulgovind": "[email protected]"
    },
    "source": {
        "git": "https://github.com/gokulgovind/GLInAppPurchase.git",
        "tag": "1.1.3"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "GLInAppPurchase/Classes/**/*",
    "frameworks": "UIKit",
    "pushed_with_swift_version": "3.1"
}

Pin It on Pinterest

Share This