Reply to SwiftUI preview: error: '__designTimeInteger(_:fallback:)' is only available in iOS 13.0 or newer Ran into this issue today. I was able to get around it by setting my deployment target to iOS 13.0. Since my project targets an earlier version, I set the deployment target to iOS 13.0 for Debug only. Developer Tools & Services Xcode Oct ’22