Skip to content

Commit c45b93d

Browse files
authored
Merge pull request #21 from javawag/main
2 parents 4e95f70 + 0310aa9 commit c45b93d

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

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

Lines changed: 4 additions & 4 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,
@@ -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()

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

Lines changed: 2 additions & 2 deletions
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,
@@ -125,7 +125,7 @@ public class MatchmakerViewController: UIViewController, GKMatchDelegate, GKLoca
125125
failed: self.failed,
126126
started: self.started) {
127127

128-
if #available(iOS 14, *) {
128+
if #available(iOS 14, tvOS 14.0, *) {
129129
viewController.matchmakingMode = self.matchmakingMode as? GKMatchmakingMode ?? .default
130130
}
131131

0 commit comments

Comments
 (0)