Reply to Xcode Previews doesn't work when used in a package that imports other packages. In my case, swift package generate-xcodeproj and opening the .xcodeproj file instead of Package.swift made it possible to access the Xcode preview. UI Frameworks SwiftUI Feb ’22