Update CircleGridView.swift
This commit is contained in:
@@ -101,9 +101,12 @@ struct CircleGridView: View {
|
|||||||
)
|
)
|
||||||
.id(friendId) // id for scrollviewreader
|
.id(friendId) // id for scrollviewreader
|
||||||
.frame(height: Self.size)
|
.frame(height: Self.size)
|
||||||
.onTapGesture {
|
.simultaneousGesture(
|
||||||
self.handleTap(gridItemIndex: value, friendId: friendId)
|
TapGesture()
|
||||||
}// TODO: maybe add simulataneous gesture or sequence? with the tap gesture?
|
.onEnded{_ in
|
||||||
|
self.handleTap(gridItemIndex: value, friendId: friendId)
|
||||||
|
}
|
||||||
|
)
|
||||||
.gesture(
|
.gesture(
|
||||||
LongPressGesture(minimumDuration: longPressMinDuration)
|
LongPressGesture(minimumDuration: longPressMinDuration)
|
||||||
.onEnded {_ in // on activation of long press
|
.onEnded {_ in // on activation of long press
|
||||||
|
|||||||
Reference in New Issue
Block a user