Skip to content

Commit 3c66022

Browse files
committed
Fix support for tvOS
1 parent 4e95f70 commit 3c66022

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Sources/GameKitUI/iOS/Matchmaker/GKMatchmakerView+iOS.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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,
@@ -105,7 +105,7 @@ public struct GKMatchmakerView: UIViewControllerRepresentable {
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()

Sources/GameKitUI/iOS/Matchmaker/MatchmakerViewController+iOS.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class MatchmakerViewController: UIViewController, GKMatchDelegate, GKLoca
3939
private let started: (GKMatch) -> Void
4040
private var cancellable: AnyCancellable?
4141

42-
@available(iOS 14.0, *)
42+
@available(iOS 14.0, tvOS 14.0,*)
4343
public init(matchRequest: GKMatchRequest,
4444
matchmakingMode: GKMatchmakingMode,
4545
canceled: @escaping () -> Void,

0 commit comments

Comments
 (0)