Reply to "Cannot show preview" message in Preview window Sorry for the trouble. Looks like there was a conditional dependency registration that was not getting triggered for me. That was causing this issue. Fixing the logic fixed the Preview. UI Frameworks SwiftUI Mar ’24