WIP - a lot of uncommitted work

This commit is contained in:
Trey t
2022-01-15 12:03:31 -06:00
parent 80690e4a8c
commit 64dd1855ac
31 changed files with 1024 additions and 154 deletions

17
Shared/Stats.swift Normal file
View File

@@ -0,0 +1,17 @@
//
// Stats.swift
// Feels
//
// Created by Trey Tartt on 1/14/22.
//
import Foundation
class Stats {
static func getCountFor(moodType: Mood, inData data: [MoodEntry]) -> Int {
let num = data.filter({
$0.moodValue == moodType.rawValue
}).count
return num
}
}