Reply to Xcode 12 Beta "Cannot preview in this file" I had an error in the code where an array index was out of bounds. When I fixed that, the preview showed up. That said, the weird error message wasn't helpful. UI Frameworks SwiftUI Jul ’20