Swift 4 Access Levels

You may not have noticed but there was a small but important change to the private access level in Swift 4. After a quick recap of the five levels I cover what has changed in Swift 4, what do you need to know when migrating from Swift 3 and what is the point of fileprivate now?

Read On →

@objc Warnings Upgrading To Swift 4

Open a Swift 3 project in Xcode 9 and it will warn you that you can upgrade to Swift 4. If you accept the invite you end up with another warning that Swift 4 mode deprecates the Swift 3 @objc inference rules. What is this scary sounding warning and how do you make it go away?

Read On →

Using Dynamic Type With Web Views

Sometimes it is convenient to use a web view to show some static HTML content in an iOS app. If you have adopted dynamic type elsewhere in your app it can look odd if that text does not also respect the user’s choice of content size. Luckily there is a way to use dynamic type when displaying text in a web view.

Read On →

Easier Swift Layout Priorities

Working with the priorities of Auto Layout constraints can be a bit of a pain with Swift. You often just want to set a priority that is one more or one less than some other priority. Unfortunately the strong type safety of Swift means you cannot just treat the priority as a number the way you could with Objective-C.

Read On →

Updating Strings For Swift 4

Another year passes and another set of changes to the Swift String API arrives. Swift 4 brings some much needed improvements and simplifications to String. These are my notes on what I needed to change to update my Swift String Cheat Sheet for Swift 4.

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.