iap warning view

This commit is contained in:
Trey t
2022-12-21 10:19:03 -06:00
parent 340798c141
commit 49e3812659
9 changed files with 129 additions and 13 deletions

View File

@@ -26,10 +26,13 @@ extension PersistenceController {
}
func populateMemory() {
for idx in 1..<25 {
for idx in 1..<255 {
let newItem = MoodEntry(context: viewContext)
newItem.timestamp = Calendar.current.date(byAdding: .day, value: -idx, to: Date())
newItem.moodValue = Int16(Mood.allValues.randomElement()!.rawValue)
newItem.moodValue = Int16.random(in: 2 ... 4)
if idx % 5 == 0 {
newItem.moodValue = Int16.random(in: 0 ... 4)
}
newItem.canEdit = true
newItem.canDelete = true