@@ -131,7 +131,17 @@ struct AvatarPickerView<ImageEditor: ImageEditorView>: View {
131
131
Button ( Localized . dismissButtonTitle, role: . cancel) { }
132
132
}
133
133
}
134
-
134
+ // Display the frame outside of the scroll view around the content, but not around the loading or error states.
135
+ . if ( !model. isAvatarsLoading && !model. grid. isEmpty) { content in
136
+ VStack ( spacing: 0 ) {
137
+ content
138
+ . avatarPickerBorder ( colorScheme: colorScheme)
139
+ . padding ( . horizontal, . DS. Padding. double)
140
+ Spacer ( )
141
+ . frame ( height: . DS. Padding. double)
142
+ . accumulateIntrinsicHeight ( )
143
+ }
144
+ }
135
145
ToastContainerView ( toastManager: model. toastManager)
136
146
. padding ( . horizontal, Constants . horizontalPadding * 2 )
137
147
}
@@ -287,7 +297,6 @@ struct AvatarPickerView<ImageEditor: ImageEditorView>: View {
287
297
}
288
298
)
289
299
. padding ( . horizontal, Constants . horizontalPadding)
290
- . padding ( . vertical, . DS. Padding. medium)
291
300
} else {
292
301
HorizontalAvatarGrid (
293
302
grid: model. grid,
@@ -308,7 +317,6 @@ struct AvatarPickerView<ImageEditor: ImageEditorView>: View {
308
317
CTAButtonView ( Localized . buttonUploadImage)
309
318
}
310
319
. padding ( . horizontal, Constants . horizontalPadding)
311
- . padding ( . bottom, . DS. Padding. medium)
312
320
}
313
321
}
314
322
@@ -361,8 +369,6 @@ struct AvatarPickerView<ImageEditor: ImageEditorView>: View {
361
369
header ( )
362
370
avatarGrid ( )
363
371
}
364
- . avatarPickerBorder ( colorScheme: colorScheme)
365
- . padding ( . horizontal, Constants . horizontalPadding)
366
372
}
367
373
368
374
private func openProfileInSafari( ) {
@@ -509,7 +515,7 @@ enum AvatarPicker {
509
515
]
510
516
let selectedImageID = " 5 "
511
517
512
- AvatarPickerView < NoCustomEditor > (
518
+ return AvatarPickerView < NoCustomEditor > (
513
519
avatarImageModels: avatarImageModels,
514
520
selectedImageID: selectedImageID,
515
521
profileModel: nil ,
0 commit comments