@@ -38,7 +38,7 @@ public struct GKMatchmakerView: UIViewControllerRepresentable {
3838 private let failed : ( Error ) -> Void
3939 private let started : ( GKMatch ) -> Void
4040
41- @available ( iOS 14 . 0 , * )
41+ @available ( iOS 14 . 0 , tvOS 14 . 0 , * )
4242 public init ( matchRequest: GKMatchRequest ,
4343 matchmakingMode: GKMatchmakingMode ,
4444 canceled: @escaping ( ) -> Void ,
@@ -51,7 +51,7 @@ public struct GKMatchmakerView: UIViewControllerRepresentable {
5151 self . started = started
5252 }
5353
54- @available ( iOS 14 . 0 , * )
54+ @available ( iOS 14 . 0 , tvOS 14 . 0 , * )
5555 public init ( minPlayers: Int ,
5656 maxPlayers: Int ,
5757 inviteMessage: String ,
@@ -98,14 +98,14 @@ public struct GKMatchmakerView: UIViewControllerRepresentable {
9898
9999 public func makeUIViewController(
100100 context: UIViewControllerRepresentableContext < GKMatchmakerView > ) -> MatchmakerViewController {
101- if #available( iOS 14 . 0 , * ) {
101+ if #available( iOS 14 . 0 , tvOS 14 . 0 , * ) {
102102 return self . makeMatchmakerViewControllerForiOS14AndHigher ( )
103103 } else {
104104 return self . makeMatchmakerViewController ( )
105105 }
106106 }
107107
108- @available ( iOS 14 . 0 , * )
108+ @available ( iOS 14 . 0 , tvOS 14 . 0 , * )
109109 internal func makeMatchmakerViewControllerForiOS14AndHigher( ) -> MatchmakerViewController {
110110 guard let matchmakingMode = self . matchmakingMode as? GKMatchmakingMode else {
111111 return self . makeMatchmakerViewController ( )
0 commit comments