Skip to content

Commit 90fa7b6

Browse files
committed
feat: moved the thumbnail generation to the top to avoid view diffing issue.
1 parent 7ca068c commit 90fa7b6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Loadify/View/DownloaderView.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ struct DownloaderView: View {
1818
}
1919

2020
var body: some View {
21-
GeometryReader { geometry in
21+
let thumbnailURL = response.video.thumbnail ?? response.video.url
22+
23+
return GeometryReader { geometry in
2224
ZStack {
2325
LoadifyColors.appBackground
2426
.ignoresSafeArea(edges: .all)
@@ -30,7 +32,6 @@ struct DownloaderView: View {
3032
Spacer()
3133

3234
VStack {
33-
let thumbnailURL = response.video.thumbnail ?? response.video.url
3435
ImageView(
3536
urlString: thumbnailURL,
3637
platformType: response.platform,

0 commit comments

Comments
 (0)