Posts

Post marked as solved
2 Replies
2.5k Views
I am updating my Watch games to use SwiftUI and am using a SpriteView to render my SpriteKit SKScene. However, my games now show the scroll bar at the top right of the Watch screen when I turn the Digital Crown. This didn't happen in the old version. Is there a way to hide the scroll bar? I see that ScrollView has a showsIndicators option to turn off the scroll bar, but I can't find this for SpriteView. Does anyone have a workaround to remove the scroll bar? This is the code I am currently using to show my GameScene.   @State private var crownPosition = 0.0   var body: some View {         GeometryReader { reader in       SpriteView(scene: GameScene(size: reader.size, crownPosition: $crownPosition))         .focusable()         .digitalCrownRotation($crownPosition)     }   } Thanks!
Posted
by Johnno.
Last updated
.
Post not yet marked as solved
4 Replies
1.6k Views
Game Center seems to have stopped working with watchOS 9. I've received support emails from users who have upgraded and can no longer see their score. I have also confirmed on my own Watch. I call this function in the ContentView using onAppear on my main view.   public func authenticatePlayerWatch() {     GKLocalPlayer.local.authenticateHandler = { error in       if GKLocalPlayer.local.isAuthenticated {         self.gameCenterEnabled = true       } else {         print(error?.localizedDescription ?? "Unknown error")       }       print(">>>> -- GKLocalPlayer.local.isAuthenticated = \(GKLocalPlayer.local.isAuthenticated)")     }   } But GKLocalPlayer.local.isAuthenticated is always false. It used to work on Watch (though intermittently) but now doesn't work at all. The iOS implementation works fine. Anyone else have this issue and perhaps found a way to make it work on watchOS?
Posted
by Johnno.
Last updated
.
Post not yet marked as solved
1 Replies
1.4k Views
Is there a way to launch the Apple Watch App Store from an Apple Watch App?Ideally, I want a "More Apps" button that users can tap to open the Apple Watch App Store with the list of my current apps.I have tried using openSystemURL but I have no idea what the URL is for Apple Watch Apps, or even if this would work. let url = URL(string: "Apple Watch App Store URL") WKExtension.shared().openSystemURL(url!)Any help is appreciated.Cheers,John
Posted
by Johnno.
Last updated
.