insert sort, profile updates revamp

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2022-05-09 10:33:03 -07:00
parent 0ab1494b1e
commit 6ac4214be7
26 changed files with 250 additions and 95 deletions

View File

@@ -10,12 +10,11 @@ import UIKit
import Combine
class Profiles: ObservableObject {
@Published var profiles: [String: TimestampedProfile] = [:]
class Profiles {
var profiles: [String: TimestampedProfile] = [:]
func add(id: String, profile: TimestampedProfile) {
profiles[id] = profile
objectWillChange.send()
}
func lookup(id: String) -> Profile? {