diff --git a/Smeem-iOS/Smeem-iOS.xcodeproj/project.pbxproj b/Smeem-iOS/Smeem-iOS.xcodeproj/project.pbxproj index d2423c5..94bc641 100644 --- a/Smeem-iOS/Smeem-iOS.xcodeproj/project.pbxproj +++ b/Smeem-iOS/Smeem-iOS.xcodeproj/project.pbxproj @@ -2239,7 +2239,7 @@ CODE_SIGN_ENTITLEMENTS = "Smeem-iOS/Smeem-iOS.entitlements"; CODE_SIGN_IDENTITY = "Apple Distribution: YuJi Lee (K8LLWYQWXD)"; CODE_SIGN_STYLE = Manual; - CURRENT_PROJECT_VERSION = 2024122400; + CURRENT_PROJECT_VERSION = 2024122401; DEVELOPMENT_TEAM = K8LLWYQWXD; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = "Smeem-iOS/Info.plist"; diff --git a/Smeem-iOS/Smeem-iOS/Presentation/DetailDiary/DetailDiaryCoachedView.swift b/Smeem-iOS/Smeem-iOS/Presentation/DetailDiary/DetailDiaryCoachedView.swift index d2b5204..f02d64e 100644 --- a/Smeem-iOS/Smeem-iOS/Presentation/DetailDiary/DetailDiaryCoachedView.swift +++ b/Smeem-iOS/Smeem-iOS/Presentation/DetailDiary/DetailDiaryCoachedView.swift @@ -42,8 +42,6 @@ struct DetailDiaryCoachedView: View { // MARK: - Body var body: some View { - ZStack { - Color.white.ignoresSafeArea() VStack(spacing: 0) { SwiftUINavigationView(navigationViewModel: navigationViewModel, selectedIndex: $selectedIndex, @@ -98,6 +96,14 @@ struct DetailDiaryCoachedView: View { dateText: response.createdAt, authorText: response.username ) + .gesture( + DragGesture() + .onEnded { value in + if value.translation.width > 50 { + dismiss() + } + } + ) } else { if isLoading { SmemeEmptyView() @@ -105,6 +111,21 @@ struct DetailDiaryCoachedView: View { } } + GeometryReader { geomerty in + Rectangle() + .frame(height: geomerty.size.height) + .foregroundStyle(Color(UIColor.white)) + .opacity(0.1) + .gesture( + DragGesture() + .onEnded { value in + if value.translation.width > 50 { + dismiss() + } + } + )} + .frame(width: screenWidth) + // "코칭 ON"일 때만 표시 if selectedIndex == 1 { Spacer() @@ -149,15 +170,6 @@ struct DetailDiaryCoachedView: View { onError = false } } - } - .gesture( - DragGesture() - .onEnded { value in - if value.translation.width > 50 { - dismiss() - } - } - ) } } }