Caps-iOS/Caps/Views/CachedImageCountView.swift
2023-10-24 15:44:13 +02:00

16 lines
297 B
Swift

import SwiftUI
struct CachedImageCountView: View {
@ObservedObject
var cache: ImageCache
var body: some View {
SettingsStatisticRow(label: "Downloaded images", value: "\(cache.imageCount)")
}
}
#Preview {
CachedImageCountView(cache: Database.mock.images)
}