iap warning view
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user