I have this code here (placed in a view):
if videoPos > 0.05 {
Text("It Worked Yay!")
playerPaused = false
}
However, since "Type '()' cannot conform to 'View'" I am not sure how I can change the variable when videoPos is > 0.05.
This is videoPos: @Binding private(set) var videoPos: Double
How can I overcome this?
playerPausedwhere you updatevideoPos.}// Your view end .onChange(of: videoPos) { value in playerPaused = false }