Thu, Oct 23

Generic object and image cache:

“Haneke provides a memory and LRU disk cache for UIImage, NSData, JSON, String or any other type that can be read or written as data.”

And if you are working with images, more good news:

“It includes a zero-config image cache with automatic resizing. Everything is done in background, allowing for fast, responsive scrolling.”

How do I embed content with Swift in an Objective-C app?

Answer: Set build setting EMBEDDED_CONTENT_CONTAINS_SWIFT to Yes

Important note:

“To prevent having multiple copies of Swift libraries in your app, make sure that Embedded Content Contains Swift Code is set to NO (false) in your embedded content.”

Wed, Oct 22

Vim fan? Vim runtime files for Swift

“Syntax and indent files for Swift”

Introduction to Touch ID: “We are going to build a simple application that shows a UILabel that updates based on whether or not the user successfully authentications via Touch ID.”

On a related note, Using Touch ID with Keychain: “…store Touch ID protected items to the keychain and how to query for the items with custom message prompts.”

The latter is written in Objective-C.

Lister: A Productivity App (Obj-C and Swift): “Lister is a list management app written in Swift that’s built on top of iCloud and the powerful NSDocument and UIDocument architectures.”

There is a lot of ground covered in this Apple project:

” In a single project you’ll find both iOS and OS X targets, embedded frameworks, UI extensions, live rendering of custom views in Interface Builder, iOS and OS X Storyboards, Auto Layout, and more.”

Create forms in Swift: “SwiftForms is a powerful and extremely flexible library written in Swift that allows to create forms by just defining them in a couple of lines. It also provides the ability to customize cells appearance, use custom cells and define your own selector controllers.”