These packages are available as a package collection, usable in Xcode or SwiftPM.
GameKit (GameCenter) for SwiftUI
2 packages.