FingerSeeker is Finger-seeking SwiftUI Library
struct ContentView: View {
@State var currentSeeker: String? = nil
var body: some View {
Seeker($currentSeeker) {
VStack {
Text("Current seeker is \(currentSeeker ?? "none")")
Circle()
.frame(width: 100, height: 100)
.finger("Seeking 1")
Circle()
.frame(width: 100, height: 100)
.finger("Seeking 2")
}
.padding(20)
}
.seekEnded { latestSeeker in
print(latestSeeker ?? "none")
}
}
}