TIL to use #Preview macro
Read The power of previews in Xcode.
It has example of a preview for views with binding which requires additional boilerplate where you have to wrap the view with another view defining a state for your binding and then pass it to the previewing view.
Fortunately, Xcode 16 introduced the Previewable
macro type.
TIL to use #Preview macro: Mastering Preview macro in Swift.
TIL SceneStorage
property wrapper: State restoration in SwiftUI.