Documents navigation

This commit is contained in:
Arkadiusz Fal
2022-12-17 16:18:14 +01:00
parent cf0572a94b
commit 8e5bafba58
5 changed files with 43 additions and 80 deletions

View File

@@ -56,7 +56,7 @@ struct FavoriteItemView: View {
}
func loadCacheAndResource(force: Bool = false) {
guard var resource else { return }
guard let resource else { return }
var onSuccess: (Entity<Any>) -> Void = { _ in }
var contentItems = [ContentItem]()

View File

@@ -92,7 +92,16 @@ struct HomeView: View {
if homeRecentDocumentsItems > 0 {
VStack {
HStack {
sectionLabel("Recent Documents")
NavigationLink(destination: DocumentsView()) {
HStack {
Text("Documents")
.font(.title3.bold())
Image(systemName: "chevron.right")
.imageScale(.small)
}
.lineLimit(1)
}
.padding(.leading, 15)
Spacer()