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.

Open Source iOS Library For Persistent Caching With TTL, Disk Management Features And More

I’ve mentioned a number of caching libraries most recently the Swift based Kingfisher library for easy downloading and caching of images.

Here’s a library from Spotify that provides persistent caching of NSData with a number of nice features called SPTPersistentCache.

SPTPEersistentCache allows for a time to live (TTL) expiry time for cached data, locking files that may be expired, disk management to make sure the cache is not too large, protectors against data corruption, the ability to control garbage collection and more.

Here’s an image showing usage of the SPTPersistentCache viewer tool on OS X:
SPTPersistentCacheViewer

You can find SPTPersistentCache on Github here.

A nice library for creating persistent caches.

Original article: Open Source iOS Library For Persistent Caching With TTL, Disk Management Features And More

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

Swift Library For Website Automation, Testing And Scraping

WKZombie is a Swift based library for iOS and OS X that provides headless browsing with many functions for automating the interaction of websites from Mathias Köhnke.

With WKZombie you can easily chain multiple actions, find html elements within a page, click links, set attributes, scrape data, execute javascript and more. You can use WKZombie to automate sites or test apps that use WKWebView.

Here’s an animation from the readme showing the included demo to retrieve data from the Apple developer site:

WKZombie

You can find WKZombie on Github here.

A nice Swift library for headless browsing.

Original article: Swift Library For Website Automation, Testing And Scraping

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