Stack Views And Multi-Line Labels

Stack views can save you a lot of time when creating constraints. Unfortunately they are not without problems especially when using multi-line labels. Here is one situation where I think you should skip stack views and create your own constraints.

Read On →

How To Get Equatable And Hashable For Free

Swift 4.1 is available with Xcode 9.3 and brings a nice gift. The compiler can now automatically generate the code to make your types Equatable or Hashable. This only applies to structs and enums (not classes) and there are conditions but this can still save you from a lot of boring boilerplate code.

Read On →

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 →
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.