Skip to content

Commit 243d6d0

Browse files
committed
make checkPeerToken a static function
1 parent 10a4371 commit 243d6d0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

MultipeerHelper+Example/MultipeerHelper+Example/RealityViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ extension RealityViewController: MultipeerHelperDelegate {
5151
_ peer: MCPeerID,
5252
with discoveryInfo: [String: String]?
5353
) -> Bool {
54-
if self.checkPeerToken(with: discoveryInfo) {
54+
if RealityViewController.checkPeerToken(with: discoveryInfo) {
5555
return true
5656
}
5757
print("incompatible peer!")

Sources/MultipeerHelper/MultipeerHelperDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ extension MultipeerHelperDelegate {
5959
/// picked up by a browser.
6060
/// - Returns: Boolean representing whether or not the two devices
6161
/// have compatible versions of RealityKit.
62-
public func checkPeerToken(with discoveryInfo: [String: String]?) -> Bool {
62+
public static func checkPeerToken(with discoveryInfo: [String: String]?) -> Bool {
6363
guard let compTokenStr = discoveryInfo?["compatibility_token"]
6464
else {
6565
return false

0 commit comments

Comments
 (0)