Skip to content

Commit 26b4351

Browse files
committed
KYPhotoLibraryDemo: Updated .toolbar
1 parent f460716 commit 26b4351

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

KYPhotoLibraryDemo/KYPhotoLibraryDemo/Views/ArchivesView/ArchivesView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ struct ArchivesView: View {
3131
self.viewModel.loadCachedFiles()
3232
}
3333
.toolbar {
34-
ToolbarItemGroup(placement: .confirmationAction) {
35-
if !self.viewModel.assetFilenames.isEmpty {
34+
if !self.viewModel.assetFilenames.isEmpty {
35+
ToolbarItem(placement: .confirmationAction) {
3636
Button(role: .destructive) {
3737
self.isPresentingDeletionDialog = true
3838
} label: {

KYPhotoLibraryDemo/KYPhotoLibraryDemo/Views/AssetDetailsView/AssetDetailsView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ struct AssetDetailsView: View {
3939
}
4040
}
4141
.toolbar {
42-
ToolbarItemGroup(placement: .topBarTrailing) {
43-
if self.viewModel.processing != .load {
42+
if self.viewModel.processing != .load {
43+
ToolbarItem(placement: .topBarTrailing) {
4444
if self.viewModel.type == .archive {
4545
_archivesNavigationBarMoreMenu()
4646
} else {

0 commit comments

Comments
 (0)