Get Updates By E-mail 

Article Written By:
Johann Dowa

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

  • 12
  •  
  •  
  • 3
  •  

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.


  • 12
  •  
  •  
  • 3
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments