I’ve mentioned a number of Swift resources and yesterday a tutorial on Swift basics through the creation of a Tetris style game.
Here’s a nice guide to Swift arrays from Coding Explorer that explains some fundamental differences between NSArray and Swift arrays, a nice chart listing the different methods, and a nice list of the different methods available for working with Swift arrays.
There’s also a nice step-by-step guide working through some of the array basics:
Last month I mentioned a nice beginners tutorial showing how to create a Candy Crush style game in Swift.
Here’s another tutorial providing a fun way to increase your Swift knowledge in the building of a Tetris style game from Bloc.
The tutorial utilizes Swift, and SpriteKit explaining every step along the way going from the setup of your project and loading assets, through to setting up the actual game, and some special effects. Everything is nicely explained a very clean format and allows you to jump between each step along the way.
I’ve mentioned a few projects on applying blur effects since they exploded in popularity thanks to iOS 7 most recently a library allowing you to create adjustable blurring effects asynchronously.
Here’s an open source component allowing you to apply motion blur to your animations using a custom Core Image filter created using the Core Image Kernel Language (available with iOS 8) from Arkadiusz Holko.
One of the issues you’ll notice when using Swift is that native key-value-observing is not available and only works with NSObject subclasses.
Swift is changing rapidly and a solution does appear to be on the roadmap for this issue. Until the solution arrives here’s a tutorial from Krzysztof Zablocki illustrating a nice technique for implementing observable properties completely using Swift. This technique uses generics and what’s really nice is that you can create the observable properties without affecting the rest of your code.
Back in February I mentioned an interesting library providing navigation bar buttons with slick animations between them.
Here’s a nice tutorial showing how to create a slick transition between two buttons using Core Graphics in Swift from Robert Böhnke.
Robert explains how he drew the different buttons, used Paint Code for automatically creating code from images for the trickier paths, and explains step by step how he animated each individual line stroke to achieve a “hamburger button” type effect.