Complete rename across all bundle IDs, App Groups, CloudKit containers, StoreKit product IDs, data store filenames, URL schemes, logger subsystems, Swift identifiers, user-facing strings (7 languages), file names, directory names, Xcode project, schemes, assets, and documentation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
18 lines
315 B
Swift
18 lines
315 B
Swift
//
|
|
// Stats.swift
|
|
// Reflect
|
|
//
|
|
// Created by Trey Tartt on 1/14/22.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
class Stats {
|
|
static func getCountFor(moodType: Mood, inData data: [MoodEntryModel]) -> Int {
|
|
let num = data.filter({
|
|
$0.moodValue == moodType.rawValue
|
|
}).count
|
|
return num
|
|
}
|
|
}
|