We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c1e2bd5 + 101f10a commit 8b59759Copy full SHA for 8b59759
SwiftUI-WorkoutApp/Screens/Common/PhotoSection/PhotoSectionView.swift
@@ -62,7 +62,14 @@ struct PhotoSectionView: View {
62
PhotoDetailScreen(
63
model: model,
64
canDelete: canDelete,
65
- reportPhotoClbk: reportPhotoClbk,
+ reportPhotoClbk: {
66
+ fullscreenImageInfo = nil
67
+ Task {
68
+ // Немного ждем, чтобы закрылось предыдущее модальное окно
69
+ try await Task.sleep(nanoseconds: 500_000_000)
70
+ await MainActor.run { reportPhotoClbk() }
71
+ }
72
+ },
73
deletePhotoClbk: deletePhotoClbk
74
)
75
}
0 commit comments