diff --git a/damus/Views/ActionBar/EventActionBar.swift b/damus/Views/ActionBar/EventActionBar.swift index f5b453a9..08fbd928 100644 --- a/damus/Views/ActionBar/EventActionBar.swift +++ b/damus/Views/ActionBar/EventActionBar.swift @@ -149,14 +149,15 @@ struct EventActionBar: View { func EventActionButton(img: String, col: Color?, action: @escaping () -> ()) -> some View { - Button(action: action) { - Image(img) - .resizable() - .foregroundColor(col == nil ? Color.gray : col!) - .font(.footnote.weight(.medium)) - .aspectRatio(contentMode: .fit) - .frame(width: 20, height: 20) - } + Image(img) + .resizable() + .foregroundColor(col == nil ? Color.gray : col!) + .font(.footnote.weight(.medium)) + .aspectRatio(contentMode: .fit) + .frame(width: 20, height: 20) + .onTapGesture { + action() + } } struct LikeButton: View {