Fri, Jan 30
Converting Objective-C Macros To Swift Functions

Apple docs:

“Complex macros are used in C and Objective-C but have no counterpart in Swift.”

No worries, Andrew Bancroft on converting macros to Swift:

“Complex Objective-C macros tend to look a lot like functions, so the transition to Swift was straightforward…”

Automate Deployments Across All Environments

Automate the app deployment process for the various stages of development, for example, builds for test, beta releases and the App Store.

Creators of fastlane summarize the open source project as follows:

“fastlane lets you define and run your deployment pipelines for different environments. It helps you unify your app’s release process and automate the whole process. fastlane connects all fastlane tools and third party tools, like CocoaPods and xctool.”

Thu, Jan 29
Create Libraries In Swift Using Function Composition

Chris Eidhof, think, gave a talk on building micro-libraries in Swift:

“The way that I work in Swift is just starting out by playing around a little bit and calling some functions. You wrap them in an autofunction and you can keep refactoring and massaging this until you end up with lots of short, small, sweet functions.”

Also worth a visit is Chris’s presentation on functional programming in Swift.

Wed, Jan 28
Learn Swift Development From Stanford University

Stanford University has updated their popular iOS programming courses focusing on Swift (versus Objective-C):

“Stanford University’s iOS programming course, one of the most popular on iTunes U with over 1.2 million downloads, is now being taught using Swift. Learn how to build apps with this exciting new programming language by following Stanford’s curriculum: Developing iOS 8 Apps with Swift.”

Tue, Jan 27
Creating an Action Extension on iOS

Lukas Petr on examples of an iOS app extension:

“…you can use a Today extension to create a widget that will appear in Notification Center, a Sharing extension that will let the user share to their social network, or an Action extension that lets the user act on current content—either view it in a different way or change it.”

The tutorial creates an action extension using the speech synthesis API of the AVFoundation framework to read text aloud.