Given:
SectionView
as a row representation in a List
Image
as a part of the same viewRequired:
Display swipe actions on Image
tap, not only using a swipe gesture.
Will be thankful for any clues regarding implementation.
struct SectionView: View {
@ObservedObject var viewModel: SectionVM
var body: some View {
HStack {
...
Image("iconVerticalDots")
.renderingMode(.template)
.foregroundColor(AppColors.accent.asColor)
.padding([.vertical, .leading], 4.0)
.onTapGesture {
//Show swipe actions
}
}
.swipeActions {
actions
}
}
var …
Run Code Online (Sandbox Code Playgroud)