diff --git a/Mlem/Views/Shared/Comments/Comment Item Logic.swift b/Mlem/Views/Shared/Comments/Comment Item Logic.swift index cb752dc1b..16957ebdd 100644 --- a/Mlem/Views/Shared/Comments/Comment Item Logic.swift +++ b/Mlem/Views/Shared/Comments/Comment Item Logic.swift @@ -9,6 +9,7 @@ import SwiftUI extension CommentItem { func voteOnComment(inputOp: ScoringOperation) async { + hapticManager.play(haptic: .lightSuccess, priority: .low) let operation = hierarchicalComment.commentView.myVote == inputOp ? ScoringOperation.resetVote : inputOp do { let updatedComment = try await commentRepository.voteOnComment( @@ -22,6 +23,7 @@ extension CommentItem { } func deleteComment() async { + hapticManager.play(haptic: .success, priority: .low) let comment = hierarchicalComment.commentView.comment do { let updatedComment = try await commentRepository.deleteComment( @@ -118,6 +120,8 @@ extension CommentItem { dirty = true dirtySaved.toggle() + hapticManager.play(haptic: .success, priority: .low) + do { let response = try await commentRepository.saveComment( id: hierarchicalComment.id, diff --git a/Mlem/Views/Shared/Comments/Comment Item.swift b/Mlem/Views/Shared/Comments/Comment Item.swift index 9e7b2b60c..9918baaf5 100644 --- a/Mlem/Views/Shared/Comments/Comment Item.swift +++ b/Mlem/Views/Shared/Comments/Comment Item.swift @@ -18,6 +18,7 @@ struct CommentItem: View { @Dependency(\.errorHandler) var errorHandler @Dependency(\.notifier) var notifier @Dependency(\.siteInformation) var siteInformation + @Dependency(\.hapticManager) var hapticManager // appstorage @AppStorage("shouldShowScoreInCommentBar") var shouldShowScoreInCommentBar: Bool = true