Просмотры прокрутки теперь нажимают кнопку блокировки, будь то вертикальные или горизонтальные. I don’t want to switch to onTapGesture to lose the native feel of button clicks, nor create variables for each button to animate with onTapGesture due to the number of buttons.
I’ve read this also caused drag gesture issues, which were fixed with simultaneousGestures
Are there any other fixes?
That's my simplified code
ScrollView(.horizontal, showsIndicators: false) {
HStack(spacing: 12) {
ForEach(0...2, id:\.self) { _ in
mostScannedItem(img: .moltoMagnum, name: "Molto Magnum", calories: 123)
.onTapGesture {
showProductSheet = true
}.scrollTargetLayout()
}
}.padding(.bottom)
.scrollTargetBehavior(.viewAligned)
< /code>
ontapgesture работает, но я хочу вернуться к кнопке, чтобы получить его нативное.
Спасибо < /p>
Подробнее здесь: https://stackoverflow.com/questions/796 ... uttons-now
IOS 18: Просмотры прокрутки сейчас блокируют кнопки ⇐ IOS
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение