Add some default height to images

This commit is contained in:
William Casarin
2023-04-21 17:45:58 -07:00
parent 9d22f40a53
commit 71a1a6f0a3

View File

@@ -66,7 +66,7 @@ struct ImageCarousel: View {
}
var height: CGFloat {
image_fill?.height ?? 0
image_fill?.height ?? 100
}
var body: some View {
@@ -118,10 +118,7 @@ extension KFOptionSetter {
let modifier = AnyImageModifier { image -> KFCrossPlatformImage in
let img_size = image.size
let geo_size = size
let fill = ImageFill.calculate_image_fill(geo_size: geo_size,
img_size: img_size,
maxHeight: max,
fillHeight: fill)
let fill = ImageFill.calculate_image_fill(geo_size: geo_size, img_size: img_size, maxHeight: max, fillHeight: fill)
DispatchQueue.main.async { [block, fill] in
try? block(fill)
}