Skip to content

Commit c978c72

Browse files
committed
Update to official documentation
1 parent f5cdf3e commit c978c72

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

App-Design-and-Layout/Home.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,12 @@ struct CategoryHome: View {
3939
}
4040
.navigationBarTitle(Text("Featured"))
4141
.navigationBarItems(trailing:
42-
PresentationButton(
42+
PresentationButton(destination: Text("User Profile")) {
4343
Image(systemName: "person.crop.circle")
4444
.imageScale(.large)
4545
.accessibility(label: Text("User Profile"))
46-
.padding(),
47-
destination: ProfileHost()
48-
)
46+
.padding()
47+
}
4948
)
5049
}
5150
}

0 commit comments

Comments
 (0)