Skip to content

Commit

Permalink
fixed more swipey actions
Browse files Browse the repository at this point in the history
  • Loading branch information
EricBAndrews committed Sep 30, 2023
1 parent eefdd5f commit 620c529
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions Mlem/Views/Tabs/Inbox/Feed/Mentions Feed View.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,6 @@ extension InboxView {
await loadTrackerPage(tracker: mentionsTracker)
}
}
.contextMenu {
ForEach(genMentionMenuGroup(mention: mention)) { item in
MenuButton(menuFunction: item, confirmDestructive: confirmDestructive)
}
}
.addSwipeyActions(
leading: [
upvoteMentionSwipeAction(mentionView: mention),
Expand All @@ -79,6 +74,11 @@ extension InboxView {
replyToMentionSwipeAction(mentionView: mention)
]
)
.contextMenu {
ForEach(genMentionMenuGroup(mention: mention)) { item in
MenuButton(menuFunction: item, confirmDestructive: confirmDestructive)
}
}
}
.buttonStyle(EmptyButtonStyle())
}
Expand Down
10 changes: 5 additions & 5 deletions Mlem/Views/Tabs/Inbox/Feed/Messages Feed View.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,17 @@ extension InboxView {
await loadTrackerPage(tracker: messagesTracker)
}
}
.contextMenu {
ForEach(genMessageMenuGroup(message: message)) { item in
MenuButton(menuFunction: item, confirmDestructive: confirmDestructive)
}
}
.addSwipeyActions(
leading: [],
trailing: [
toggleMessageReadSwipeAction(message: message),
replyToMessageSwipeAction(message: message)
]
)
.contextMenu {
ForEach(genMessageMenuGroup(message: message)) { item in
MenuButton(menuFunction: item, confirmDestructive: confirmDestructive)
}
}
}
}
10 changes: 5 additions & 5 deletions Mlem/Views/Tabs/Inbox/Feed/Replies Feed View.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,6 @@ extension InboxView {
await loadTrackerPage(tracker: repliesTracker)
}
}
.contextMenu {
ForEach(genCommentReplyMenuGroup(commentReply: reply)) { item in
MenuButton(menuFunction: item, confirmDestructive: confirmDestructive)
}
}
.destructiveConfirmation(
isPresentingConfirmDestructive: $isPresentingConfirmDestructive,
confirmationMenuFunction: confirmationMenuFunction
Expand All @@ -88,6 +83,11 @@ extension InboxView {
replyToCommentReplySwipeAction(commentReply: reply)
]
)
.contextMenu {
ForEach(genCommentReplyMenuGroup(commentReply: reply)) { item in
MenuButton(menuFunction: item, confirmDestructive: confirmDestructive)
}
}
}
.buttonStyle(EmptyButtonStyle())
}
Expand Down

0 comments on commit 620c529

Please sign in to comment.