rename HomeViewTwo to MonthView

This commit is contained in:
Trey t
2022-02-27 15:37:23 -06:00
parent 6a83c4d74f
commit fca4b3cb02
4 changed files with 12 additions and 12 deletions

View File

@@ -23,7 +23,7 @@ struct MainTabView: View {
Label(String(localized: "content_view_tab_main"), systemImage: "list.dash")
}
HomeViewTwo()
MonthView()
.tabItem {
Label(String(localized: "content_view_tab_month"), systemImage: "calendar")
}

View File

@@ -7,7 +7,7 @@
import SwiftUI
struct HomeViewTwo: View {
struct MonthView: View {
@AppStorage(UserDefaultsStore.Keys.needsOnboarding.rawValue, store: GroupUserDefaults.groupDefaults) private var needsOnboarding = true
@AppStorage(UserDefaultsStore.Keys.theme.rawValue, store: GroupUserDefaults.groupDefaults) private var theme: Theme = .system
@@ -86,7 +86,7 @@ struct HomeViewTwo: View {
}
}
extension HomeViewTwo {
extension MonthView {
private var topView: some View {
VStack {
if ShowBasedOnVoteLogics.isMissingCurrentVote(onboardingData: onboardingData.savedOnboardingData) {
@@ -123,7 +123,7 @@ extension HomeViewTwo {
}
// view that make up the list body
extension HomeViewTwo {
extension MonthView {
private func homeViewTwoSectionHeaderView(month: Int, year: Int) -> some View {
Text("\(Random.monthName(fromMonthInt: month)) \(String(year))")
.font(.body)
@@ -158,6 +158,6 @@ extension HomeViewTwo {
struct HomeViewTwo_Previews: PreviewProvider {
static var previews: some View {
HomeViewTwo()
MonthView()
}
}