SamuKata
kavsoft
kavsoft

patreon


SwiftUI Horizontal Wheel Picker - Custom Picker - iOS 17 - Xcode 15

Source Code For SwiftUI Horizontal Wheel Picker - Custom Picker - iOS 17 - Xcode 15.


Download Code 👇

SwiftUI Horizontal Wheel Picker - Custom Picker - iOS 17 - Xcode 15

Comments

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?

Arman Baimukhanov

iOS 18 has a bug with .scrollPosition, can you check what is the problem it could be? https://share.icloud.com/photos/0bbr2lyvGi5RNRqnZIupFT5wA

Artem

add sensoryfeedback code in scrollPosition, i solved this

肇兴 廖

How to play haptics when scroll?

肇兴 廖

Update: It works on my phone, but not on the simulator, something must be on my end. Thanks!

Dávid Teibler

Hi, I Just Tested the File and it's working fine as Intended.

Kavsoft

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!

Dávid Teibler

Same me

Bao Ha

Works like a champ: Thanks!

Frank

I think, it's an issue with scrollPosition Bindings, replacing .init() with Binding resolves the issue, Code is also updated, check it out.

Kavsoft

I have a issue. Generic parameter 'some Hashable' could not be inferred

Bao Ha

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!

Frank


More Creators