These packages are available as a package collection, usable in Xcode or SwiftPM.
Secure Apple TV to iPhone pairing and "Type on iPhone" for tvOS apps: code or QR pairing, encrypted channel, text and password requests, SwiftUI for both sides.
1 package.