This commit is contained in:
Daniel Arantes Loverde
2026-02-15 08:18:06 -03:00
parent d7b8b1864a
commit 0f5ad4c268
35 changed files with 4090 additions and 309 deletions

View File

@@ -134,22 +134,8 @@ struct AsyncStoreImage: View {
let imageURL: String?
var body: some View {
Group {
if let imageURL,
let url = URL(string: imageURL) {
AsyncImage(url: url) { phase in
switch phase {
case .success(let image):
image
.resizable()
.scaledToFill()
default:
fallback
}
}
} else {
fallback
}
CachedRemoteImage(imageURL: imageURL) {
fallback
}
.frame(maxWidth: .infinity, maxHeight: .infinity)
.background(AppColors.brandSoft)