I’ve just published a new article - Making SwiftUI Previews Work For You.
Canvas previews are an in-your-face feature of SwiftUI. When you create a new view, half of the boilerplate code is for the preview. A third of your Xcode real estate is taken up by the preview.
With Xcode 13, previews are finally featured and reliable enough to make them a must-use feature. They speed up development while avoiding embarrassing UI glitches making it into production.
This article explains how to get the most out of SwiftUI previews – even for views relying on data held in databases such as Realm or Core Data.