get the small photo using the ImageCacheService

Signed-off-by: Matt Bruce <mbrucedogs@gmail.com>
This commit is contained in:
Matt Bruce 2025-01-20 19:19:37 -06:00
parent 6e4ff7a569
commit 9d3a23e69d

View File

@ -33,5 +33,12 @@ public class EmployeeCellViewModel: ObservableObject {
self.team = employee.team
self.employeeType = employee.employeeType.description
if let endpoint = employee.photoURLSmall {
Task{
if let smallPhotoURL = URL(string: endpoint) {
smallPhoto = await ImageCacheService.shared.loadImage(from: smallPhotoURL)
}
}
}
}
}