Skip to content

Commit 8655e70

Browse files
committed
Replace deprecated API.
1 parent 4e87341 commit 8655e70

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Shared/Supporting Files/Views/FavoritesView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ struct FavoritesView: View {
4242
}
4343
.listStyle(.sidebar)
4444
.toolbar {
45-
ToolbarItemGroup(placement: .navigationBarTrailing) {
45+
ToolbarItemGroup(placement: .topBarTrailing) {
4646
EditButton()
4747

4848
Button {
@@ -105,7 +105,7 @@ private extension FavoritesView {
105105
Text("Choose a sample to add to Favorites")
106106
.font(.subheadline)
107107
}
108-
ToolbarItem(placement: .navigationBarTrailing) {
108+
ToolbarItem(placement: .topBarTrailing) {
109109
Button("Done") {
110110
dismiss()
111111
}

Shared/Supporting Files/Views/SampleDetailView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ struct SampleDetailView: View {
8484
.navigationTitle(sample.name)
8585
.navigationBarTitleDisplayMode(.inline)
8686
.toolbar {
87-
ToolbarItem(placement: .navigationBarTrailing) {
87+
ToolbarItem(placement: .topBarTrailing) {
8888
Button {
8989
isSampleInfoViewPresented = true
9090
} label: {

Shared/Supporting Files/Views/Sidebar.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ struct Sidebar: View {
3434
}
3535
}
3636
.toolbar {
37-
ToolbarItem(placement: .navigationBarTrailing) {
37+
ToolbarItem(placement: .topBarTrailing) {
3838
Button {
3939
isAboutViewPresented = true
4040
} label: {

0 commit comments

Comments
 (0)