Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions SnapSafe/Screens/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ struct ContentView: View {
}
.sheet(item: $nav.presentedSheet) { destination in
navigationDestinationView(for: destination)
.securityManaged()
}
.fullScreenCover(item: $nav.presentedFullScreenCover) { destination in
navigationDestinationView(for: destination)
.securityManaged()
}
.securityManaged()
.onAppear {
Expand Down
3 changes: 3 additions & 0 deletions SnapSafe/Screens/Gallery/SecureGalleryView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ struct SecureGalleryView: View {
viewModel.onSelectedPhotoChange(newValue)
}
.fullScreenCover(item: $viewModel.selectedPhoto) { photoDef in
Group {
// Find the index of the selected photo in the photos array
if let initialIndex = viewModel.photos.firstIndex(where: { $0.photoName == photoDef.photoName }) {
EnhancedPhotoDetailView(
Expand All @@ -216,6 +217,8 @@ struct SecureGalleryView: View {
)
}
}
.securityManaged()
}
.alert(
viewModel.deleteAlertTitle,
isPresented: $viewModel.showDeleteConfirmation,
Expand Down
1 change: 1 addition & 0 deletions SnapSafe/Screens/PhotoDetail/EnhancedPhotoDetailView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ struct EnhancedPhotoDetailView: View {
.sheet(isPresented: $viewModel.showImageInfo) {
if let photoDef = viewModel.currentPhotoDef {
ImageInfoView(photoDef: photoDef)
.securityManaged()
}
}
}
Expand Down
1 change: 1 addition & 0 deletions SnapSafe/Screens/PhotoDetail/PhotoDetailView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ struct PhotoDetailView: View {
.sheet(isPresented: $viewModel.showImageInfo) {
if let photoDef = viewModel.currentPhotoDef {
ImageInfoView(photoDef: photoDef)
.securityManaged()
}
}
.onAppear {
Expand Down
1 change: 1 addition & 0 deletions SnapSafe/Screens/Settings/SettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ struct SettingsView: View {
viewModel.stopSelectingDecoys()
})
}
.securityManaged()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think maybe we shouldnt need to do it down in each view, but I'm not 100% sure

}
}
}
Expand Down