Table Swipe Actions

Adding edit actions to table view rows has been possible since iOS 8 but only on the right (trailing) side. The new style swipe actions added in iOS 11 and used by Apple in Mail and other apps can be on either side and can include images. Here is all you need to know about adding swipe actions to a table view.

Read On →

Quick Guide To Property Animators

There are at least three ways to animate views in iOS. In the early days we had the begin/commit style. The block based API has been around since iOS 4 and since iOS 10 we have property animators which saw some updates in iOS 11. If you are familiar with the block-based API but have been avoiding the more complex property animators here is my quick guide comparing the two.

Read On →

More Interface Builder Tips And Tricks

My top ten tips, tricks, dos and don’ts to make you feel like an Interface Builder expert.

Read On →

Replacing flatMap With compactMap

Swift 4.1 ships with the (still in beta) Xcode 9.3 and brings more changes to the Swift language and the Swift standard library. Apple intends it as a source compatible upgrade to Swift 4.0 but I have hit one source code change that I am guessing will be widespread.

Using flatMap on a sequence (like an Array) filtering anything that maps to nil is now deprecated and replaced by compactMap.

Read On →

Creating Custom Xcode Project Templates

I recently wanted to play with some projects that did not use a main Storyboard. Starting from the single view app template it soon gets tiring to clean things up and add the boilerplate to the app delegate to create the window. This seems like a good time to learn how to create my own custom Xcode project template. Here are my notes for future reference.

Read On →
Archives Categories
No time to watch WWDC videos?

Sign up to get my iOS posts direct to your inbox and I will send you a free PDF of my iOS Size Classes Cheat Sheet.

OK! Check your inbox (or spam folder) for an email to confirm your details and download your free guide to iOS Size Classes.

There was an error submitting your subscription. Please try again.

Unsubscribe at any time.