diff --git a/Projects/App/Sources/Feature/DetailFeature/Sources/DetailView.swift b/Projects/App/Sources/Feature/DetailFeature/Sources/DetailView.swift index 9a2d8ae..2a69ab5 100644 --- a/Projects/App/Sources/Feature/DetailFeature/Sources/DetailView.swift +++ b/Projects/App/Sources/Feature/DetailFeature/Sources/DetailView.swift @@ -3,7 +3,7 @@ import SwiftUI struct DetailView: View { @State private var topNavigationState: Bool = false @State private var emojiName: [String] = ["heart", "congrats", "thumbsUp", "thinking", "poop", "china"] - @State private var emojiServerName: [String] = ["HEART", "CONGRATUATION", "THUMBSUP", "THINKING", "POOP", "CHINA"] + @State private var emojiServerName: [String] = ["HEART", "CONGRATS", "THUMBSUP", "THINKING", "POOP", "CHINA"] @State private var graySmileState: Bool = false @Environment(\.dismiss) private var dismiss @StateObject var postViewModel: PostViewModel @@ -143,14 +143,13 @@ struct DetailView: View { HStack(spacing: 25) { ForEach(0..<6) { tag in Button(action: { - Haptic.impact(style: .soft) + Haptic.impact(style: .light) postViewModel.setupPostId(postId: postId) postViewModel.setupEmojiType(emojiType: emojiServerName[tag]) postViewModel.postEmoji { success in - print("\(emojiName[tag]) 성공") - if success { + print("\(emojiName[tag]) 성공") if checkEmojiList[tag] == true { emojiList[tag] -= 1 checkEmojiList[tag].toggle() @@ -158,6 +157,8 @@ struct DetailView: View { emojiList[tag] = 1 checkEmojiList[tag].toggle() } + } else { + print("\(emojiName[tag]) 실패") } } }) { diff --git a/Projects/App/Sources/Feature/PostCreateFeature/Sources/PostCreateView.swift b/Projects/App/Sources/Feature/PostCreateFeature/Sources/PostCreateView.swift index 6fe571a..7719085 100644 --- a/Projects/App/Sources/Feature/PostCreateFeature/Sources/PostCreateView.swift +++ b/Projects/App/Sources/Feature/PostCreateFeature/Sources/PostCreateView.swift @@ -346,6 +346,7 @@ struct PostCreateView: View { buttonOkColor: GPleAsset.Color.main.swiftUIColor ){ print("클릭") + Haptic.impact(style: .light) buttonState = false toast = FancyToast(type: .info, title: "업로드 중...", message: "해당 게시물의 업로드가 진행중입니다. 잠시만 기다려주세요.")