๐Long Press
SwiftUI โฉ Gestures โฉ Long Press
โญ๏ธ .onEnded()
ๅชๆๆ้ๆ่ถ ้
minimumDuration
ๆๆ่งธ็ผโ๏ธif the user stops touching the view before
minimumDuration
seconds have elapsed or moves their finger more thanmaximumDistance
points SwiftUI does not invoke theonEnded(_:)
callback.
โญ๏ธ .onChanged()
ๅช่ฆๆธๅฐ๏ผๅฐฑๆ่งธ็ผ๏ผไฝใๅช่งธ็ผไธๆฌกใ๏ผๅฐฑ็ฎๆธๅไน ๏ผไนๅช่งธ็ผไธๆฌก๏ผไธๆ้ฃ็บ่งธ็ผ๏ผ้้็
value
็ธฝๆฏtrue
ใไฝใๆฏๆธไธๆฌก๏ผๅฐฑ่งธ็ผไธๆฌกใใ
Last updated