Zane Carter

Sign in

Conforming to RawRepresentable using a NSKeyedArchiver

iOS 14 came with some exciting new features for SwiftUI and one of my favorites is the @AppStorage wrapper. This new property wrapper makes storing a value in UserDefaults way easier. Prior to iOS 14, this would have to be done by using getter and setter methods.

@AppStorage Documentation

The…


When @State property wrapper is broken, use @StateObject

If your trying to display dynamic content in a single sheet on iOS 14 with SwiftUI you may have come across this problem.

In my case, I had multiple buttons launching different views inside of the same sheet using a state variable. You would click one button and an empty…


Let’s add backward-compatibility support for the latest SwiftUI feature

Computer on desk

With the release of iOS 14, SwiftUI gained some powerful new features. But if you're still stuck supporting iOS 13 platforms, then that doesn't do you much good, does it?

I recently needed to use the onChange view modifier in a project, but I soon came to realise that it’s…


Thanks to iOS 14 & SwiftUI, making Universal Apps has become even easier. Making Navigation look good on both iPad and iPhone can still be a bit tricky though. TabBars make sense on iPhone but on iPad they can look a bit out of place. …

Zane Carter

I make apps for the AppStore. Currently working on an app that makes gardening easier. Twitter: @iamzanecarter

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store