iap - wip
This commit is contained in:
@@ -22,6 +22,7 @@ struct YearView: View {
|
||||
@AppStorage(UserDefaultsStore.Keys.moodTint.rawValue, store: GroupUserDefaults.groupDefaults) private var moodTint: MoodTints = .Default
|
||||
@AppStorage(UserDefaultsStore.Keys.textColor.rawValue, store: GroupUserDefaults.groupDefaults) private var textColor: Color = DefaultTextColor.textColor
|
||||
|
||||
@EnvironmentObject var iapManager: IAPManager
|
||||
@StateObject public var viewModel: YearViewModel
|
||||
@StateObject private var filteredDays = DaysFilterClass.shared
|
||||
//[
|
||||
@@ -52,8 +53,16 @@ struct YearView: View {
|
||||
ScrollView {
|
||||
gridView
|
||||
}
|
||||
.disabled(iapManager.showIAP)
|
||||
.padding(.bottom, 5)
|
||||
}
|
||||
|
||||
if iapManager.showIAP {
|
||||
VStack {
|
||||
Spacer()
|
||||
PurchaseButtonView(height: 175, iapManager: iapManager)
|
||||
}
|
||||
}
|
||||
}
|
||||
.onAppear(perform: {
|
||||
self.viewModel.filterEntries(startDate: Date(timeIntervalSince1970: 0), endDate: Date())
|
||||
|
||||
Reference in New Issue
Block a user