Skip to content

Commit 8b59759

Browse files
authored
Merge pull request #98 from OlegEremenko991/feature/update-photo-report-presentation
Поправил показ окна с почтой для отправки жалобы на фотографию
2 parents c1e2bd5 + 101f10a commit 8b59759

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

SwiftUI-WorkoutApp/Screens/Common/PhotoSection/PhotoSectionView.swift

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,14 @@ struct PhotoSectionView: View {
6262
PhotoDetailScreen(
6363
model: model,
6464
canDelete: canDelete,
65-
reportPhotoClbk: reportPhotoClbk,
65+
reportPhotoClbk: {
66+
fullscreenImageInfo = nil
67+
Task {
68+
// Немного ждем, чтобы закрылось предыдущее модальное окно
69+
try await Task.sleep(nanoseconds: 500_000_000)
70+
await MainActor.run { reportPhotoClbk() }
71+
}
72+
},
6673
deletePhotoClbk: deletePhotoClbk
6774
)
6875
}

0 commit comments

Comments
 (0)