@@ -8,6 +8,7 @@ import Store
88import Components
99import Style
1010import PrimitivesComponents
11+ import Localization
1112
1213public struct CollectionsScene < ViewModel: CollectionsViewable > : View {
1314 @State private var model : ViewModel
@@ -17,15 +18,35 @@ public struct CollectionsScene<ViewModel: CollectionsViewable>: View {
1718 }
1819
1920 public var body : some View {
20- ScrollView {
21- LazyVGrid ( columns: model. columns) {
22- collectionsView
21+ GeometryReader { geometry in
22+ ScrollView {
23+ VStack ( spacing: . zero) {
24+ LazyVGrid ( columns: model. columns) {
25+ collectionsView
26+ }
27+ . padding ( . horizontal, . medium)
28+
29+ Spacer ( minLength: . medium)
30+
31+ if let unverifiedCount = model. content. unverifiedCount {
32+ List {
33+ NavigationLink ( value: Scenes . UnverifiedCollections ( ) ) {
34+ ListItemView (
35+ title: Localized . Asset. Verification. unverified,
36+ subtitle: unverifiedCount
37+ )
38+ }
39+ }
40+ . scrollDisabled ( true )
41+ . frame ( height: . list. minHeight)
42+ }
43+ }
44+ . frame ( minHeight: geometry. size. height)
2345 }
24- . padding ( . horizontal, Spacing . medium)
2546 }
2647 . observeQuery ( request: $model. request, value: $model. nftDataList)
2748 . overlay {
28- if model. items. isEmpty {
49+ if model. content . items. isEmpty {
2950 EmptyContentView ( model: model. emptyContentModel)
3051 }
3152 }
@@ -41,7 +62,7 @@ public struct CollectionsScene<ViewModel: CollectionsViewable>: View {
4162
4263extension CollectionsScene {
4364 private var collectionsView : some View {
44- ForEach ( model. items) { item in
65+ ForEach ( model. content . items) { item in
4566 NavigationLink ( value: item. destination) {
4667 GridPosterView (
4768 assetImage: item. assetImage,
0 commit comments