With the release of Swift 3, C-style for loops will be no more. Thomas Hanning provides a quick summary of a few looping options using Swift for-in.
Swift: Avoiding C-Style For-Loops – @hanning_thomas
Simon Gladman wrote this iPad app for tinkering with image filters in Apple’s Core Image framework. This is a great way to see how the various filters work without having to write an example for each. @FlexMonkey
@matthewcheok‘s project, Fluent, simplifies the process of defining animation sequences on iOS. Creating an animation consists of specifying the animation method, setting the properties and defining absolute or relative transformations, all in a chainable manner.
Using either Storyboard or a manual setup, this project offers a nice interactive and custom calendar control. The project is written in Swift 2.
Custom Visual Calendar for iOS – @dottieyottie
Joe Masilotti continues to post some excellent content on working with XCTest. This time around writing about sharing assertions:
“An easy way to maintain quality in your test suite is to share assertions between tests. This can be accomplished by extracting helper methods to run common assertions.”
Custom Helpers in XCTest – @joemasilotti
This is an interesting probability challenge, fondly referred to as the Monty Hall Problem:
“Suppose you’re on a game show, and you’re given the choice of three doors: Behind one door is a car; behind the others, goats. You pick a door, say No. 1, and the host, who knows what’s behind the doors, opens another door, say No. 3, which has a goat. He then says to you, “Do you want to pick door No. 2?” Is it to your advantage to switch your choice?”
Thomas Hanning shows how to solve the problem via a Swift playground.
Monty Hall Problem Solved – @hanning_thomas
Erica Sadun on watching object lifecycles, including using ObjectIdentifier on classes to obtain a unique identifier that you can track.
Watching Object Lifecycles – @ericasadun