get the small photo using the ImageCacheService
Signed-off-by: Matt Bruce <mbrucedogs@gmail.com>
This commit is contained in:
parent
6e4ff7a569
commit
9d3a23e69d
@ -33,5 +33,12 @@ public class EmployeeCellViewModel: ObservableObject {
|
|||||||
self.team = employee.team
|
self.team = employee.team
|
||||||
self.employeeType = employee.employeeType.description
|
self.employeeType = employee.employeeType.description
|
||||||
|
|
||||||
|
if let endpoint = employee.photoURLSmall {
|
||||||
|
Task{
|
||||||
|
if let smallPhotoURL = URL(string: endpoint) {
|
||||||
|
smallPhoto = await ImageCacheService.shared.loadImage(from: smallPhotoURL)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user