From 0647dcaff07b9e3a0367bcdf1921c710cfc4c0f9 Mon Sep 17 00:00:00 2001 From: peng-u-0807 Date: Sat, 10 Feb 2024 20:54:18 +0900 Subject: [PATCH] Fix sheet not dismissing (email verification) --- SNUTT-2022/SNUTT/Views/Scenes/LectureDetailScene.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SNUTT-2022/SNUTT/Views/Scenes/LectureDetailScene.swift b/SNUTT-2022/SNUTT/Views/Scenes/LectureDetailScene.swift index 2dfb2ff0..e7f1e565 100644 --- a/SNUTT-2022/SNUTT/Views/Scenes/LectureDetailScene.swift +++ b/SNUTT-2022/SNUTT/Views/Scenes/LectureDetailScene.swift @@ -294,6 +294,9 @@ struct LectureDetailScene: View { .alert(viewModel.errorTitle, isPresented: $viewModel.isEmailVerifyAlertPresented, actions: { Button("확인") { viewModel.selectedTab = .review + if displayMode == .preview { + dismiss() + } } Button("취소", role: .cancel) {} }, message: {