i can't explain why extension on UIKit's UIPickerView affects on SwiftUI's picker.
and does that mean that knowing basics of uikit is very useful for learning swiftui?
does it even make sense to learn swiftUI if it's basically UIkit library(if I am right)
extension UIPickerView {
open override var intrinsicContentSize: CGSize {
return CGSize(width: UIView.noIntrinsicMetric, height: 200)
}
}
GeometryReader { geometry in
HStack(spacing: 0) {
Picker(selection: self.$daySelection, label: Text("")) {
ForEach(0 ..< self.days.count) { index in
Text("\(self.days[index]) d").tag(index)
}
}
.pickerStyle(.wheel)
Picker(selection: self.$daySelection, label: Text("")) {
ForEach(0 ..< self.days.count) { index in
Text("\(self.days[index]) d").tag(index)
}
}
.pickerStyle(.wheel)
Picker(selection: self.$daySelection, label: Text("")) {
ForEach(0 ..< self.days.count) { index in
Text("\(self.days[index]) d").tag(index)
}
}
.pickerStyle(.wheel)

This extension solves problem of overlapping gesture areas of pickers in ios 15.