File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ struct DownsampleGridView: View {
5
5
6
6
@State private var url = Util . Grid. url
7
7
@State private var showsDetail : Bool = false
8
- @State private var size : CGSize = . init ( width : 160 , height : 160 )
8
+ @State private var height : Double = 160
9
9
10
10
var body : some View {
11
11
VStack {
@@ -18,13 +18,12 @@ struct DownsampleGridView: View {
18
18
} label: {
19
19
AsyncDownSamplingImage (
20
20
url: url,
21
- downsampleSize: . size ( Util . Grid . bufferedImageSize )
21
+ downsampleSize: . height ( height )
22
22
) { image in
23
23
image. resizable ( )
24
24
. aspectRatio ( contentMode: . fit)
25
25
. frame (
26
- width: size. width,
27
- height: size. height
26
+ height: height
28
27
)
29
28
} onFail: { error in
30
29
Text ( " Error: \( error. localizedDescription) " )
You can’t perform that action at this time.
0 commit comments