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
73 changes: 41 additions & 32 deletions Conjugate/Views/Tabs/Conjugate/ConjugateTab.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,39 +3,48 @@
import SwiftUI

struct ConjugateTab: View {
@State private var navigateToDownload = false

var body: some View {
AppNavigation {
AppNavigation {
ScrollView {
VStack(spacing: 20) {
Image("ScribeLogo")
.resizable()
.scaledToFit()
.frame(width: 200, height: 100)
.padding(.top, 30)
CardView(
title: NSLocalizedString(
"i18n.app.download.menu_option.conjugate_title",
value: "Verb data",
comment: ""
),
mainText: NSLocalizedString(
"i18n.app.download.menu_option.conjugate_download_data_start",
value: "Download data to start conjugating!",
comment: ""
),
subtitle: NSLocalizedString(
"i18n.app.download.menu_option.conjugate_description",
value: "Add new data to Scribe Conjugate.",
comment: ""
)
) {
// Insert navigation to download screen.
}
}
.padding()
}
.background(Color("scribeAppBackground"))
.navigationBarHidden(true)
VStack(spacing: 20) {
Image("ScribeLogo")
.resizable()
.scaledToFit()
.frame(width: 200, height: 100)
.padding(.top, 30)

CardView(
title: NSLocalizedString(
"i18n.app.download.menu_option.conjugate_title",
value: "Verb data",
comment: ""
),
mainText: NSLocalizedString(
"i18n.app.download.menu_option.conjugate_download_data_start",
value: "Download data to start conjugating!",
comment: ""
),
subtitle: NSLocalizedString(
"i18n.app.download.menu_option.conjugate_description",
value: "Add new data to Scribe Conjugate.",
comment: ""
)
) {
navigateToDownload = true
}
}
.background(
NavigationLink(
destination: ConjugateDownloadDataScreen(),
isActive: $navigateToDownload
) { EmptyView() }
)
}
.padding()
}
.background(Color("scribeAppBackground"))
.navigationBarHidden(true)
}
}
}
Loading
Loading