Using Xcode version 13.4.1 and faced the same problem when created new SwiftUI file. Xcode for some reading automatically turns off this toggle switch. Go to yourProject.xcodeproj -> Build Settings -> Build Options -> Enable Previews and toggle it back on to “Yes”.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: