SwiftUI Horizontal Wheel Picker - Custom Picker - iOS 17 - Xcode 15
🕑 Added 2024-03-15 14:07:18 +0000 UTCSource Code For SwiftUI Horizontal Wheel Picker - Custom Picker - iOS 17 - Xcode 15.
Download Code 👇
Comments
Arman Baimukhanov
sorry, made it. have another question: how to optimize it? I made count more than 100 and it exceeded rate-limit, also maybe its because of hapticfeedback
Arman Baimukhanov
how could we make it vertical?
Artem
iOS 18 has a bug with .scrollPosition, can you check what is the problem it could be? https://share.icloud.com/photos/0bbr2lyvGi5RNRqnZIupFT5wA
肇兴 廖
add sensoryfeedback code in scrollPosition, i solved this
肇兴 廖
How to play haptics when scroll?
Dávid Teibler
Update: It works on my phone, but not on the simulator, something must be on my end. Thanks!
Kavsoft
Hi, I Just Tested the File and it's working fine as Intended.
Dávid Teibler
I downloaded the Updated.zip and the when I drag the picker the Text value does not change (stays 10). Could you look into it ? Thanks in advance!
Bao Ha
Same me
Frank
Works like a champ: Thanks!
Kavsoft
I think, it's an issue with scrollPosition Bindings, replacing .init() with Binding resolves the issue, Code is also updated, check it out.
Bao Ha
I have a issue. Generic parameter 'some Hashable' could not be inferred
Frank
Am LOVING this code! Should one decide to dig in further, there's SIGNIFICANT flexibility and re-usability possibilities. I have stumbled across an error in my own code; thus, I have downloaded the provided reference code and see the same error on my XCOde build. The error is generated from WheelPicker.swift, line 49 Generic parameter 'some Hashable' could not be inferred Any ideas where to go and start resolving this? Thank YOU!