Swift Library Providing A Clean And Simple API For In-App Purchases

Last year I mentioned a tutorial showing how to implement renewable purchases with Store Kit.

Here’s an open source Swift library for iOS and OS X providing a simple and clean syntax for in app purchases called SwiftyStoreKit from Andrea Bizzotto.

SwiftyStoreKit enables easy error handling with support for retrieving product info, purchasing products, checking past purchases, and verifying receipts.

SwiftyStoreKit.purchaseProduct("com.musevisions.SwiftyStoreKit.Purchase1") { result in
    switch result {
    case .Success(let productId):
        print("Purchase Success: (productId)")
    case .Error(let error):
        print("Purchase Failed: (error)")
    }
}

SwiftyStoreKit

You can find SwiftyStoreKit on Github here.

A great library for working with StoreKit.

Original article: Swift Library Providing A Clean And Simple API For In-App Purchases

©2016 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.

Leave a Reply

Your email address will not be published. Required fields are marked *