Caps-iOS/Caps/Views/CachedImageCountView.swift

16 lines
297 B
Swift
Raw Normal View History

2023-10-24 15:44:13 +02:00
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)
}