Post marked as solved
Click to stop watching this thread.
You have stopped watching this post. Click to start watching again.
Post marked as solved with 1 replies, 0 views
A friend of mine gave me the solution! To stop the scroll bar appearing when using the digital crown, set isContinuous to true in the .digitalCrowRotation.
Here is my latest code which no longer shows the scroll bar:
struct GameScreen: View {
@EnvironmentObject var screenController: ScreenController
@State private var crownPosition = 0.0
var body: some View {
GeometryReader { reader in
SpriteView(scene: GameScene(size: reader.size, crownPosition: $crownPosition))
.focusable()
.digitalCrownRotation($crownPosition, from: 0, through: 400, by: 4, sensitivity: .medium, isContinuous: true, isHapticFeedbackEnabled: false)
}
}
}
I hope this helps others.