Hello I'm brand new here. (brand new to code as well for that matter) so I apologize in advance if I'm doing this incorectly or asking a dumb question.
I've created a custom view which I would like to modify based on a swipe gesture on the siri remote.
I've searched for hours to find a solution and cant find anything.
It's incredible to me that there dosen't seem to be a simple default solution for this.
eg:
@State var text: String = "some text"
some view {
Text(text)
.focusable
.onSwipe(swipe: .left) {
text = "new text"
}
}
// a swipe left on the siri remote results in the text changing from "some text" to "new text"
this is a simplified version of what I would like to accomplish and obviously it doesn’t work. i'ts ok if the answer is more complicated and less elegant. I just want some way to achieve the same result
Many thanks in advance for any answers or pointers!