Reply to Cannot find type 'KeyPathComparator' in scope Make sure you are launching Xcode-beta (Xcode 13) and not the old Xcode. It builds for me in Xcode 13 but has a similar error to yours in Xcode 12.5 UI Frameworks SwiftUI Jun ’21