This commit is contained in:
Trey t
2025-12-09 23:37:04 -06:00
parent 3a10b4b8d6
commit f2565678be
1587 changed files with 7747 additions and 647 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
}
}