Post marked as solved
Post marked as solved with 2 replies, 2,533 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!