File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed
Projects/Feature/FeatureRecommend/Sources/Recommend Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -185,6 +185,7 @@ private extension RecommendFeature {
185185 return . none
186186 case let . 전체보기_버튼_눌렀을때( proxy) :
187187 guard state. selectedInterest != nil else { return . none }
188+ state. domain. contentList. data = nil
188189
189190 state. selectedInterest = nil
190191 let leading = 20 / UIScreen. main. bounds. width
@@ -193,19 +194,13 @@ private extension RecommendFeature {
193194 y: UnitPoint . leading. y
194195 )
195196 proxy. scrollTo ( " 전체보기 " , anchor: anchor)
196- state. domain. contentList. data = nil
197197 return shared ( . async( . 추천_조회_API) , state: & state)
198198 case let . 관심사_버튼_눌렀을때( interest, proxy) :
199199 guard state. selectedInterest != interest else { return . none }
200+ state. domain. contentList. data = nil
200201
201202 state. selectedInterest = interest
202- let leading = 20 / UIScreen. main. bounds. width
203- let anchor = UnitPoint (
204- x: leading,
205- y: UnitPoint . leading. y
206- )
207- proxy. scrollTo ( interest. description, anchor: anchor)
208- state. domain. contentList. data = nil
203+ proxy. scrollTo ( interest. description, anchor: . leading)
209204 return shared ( . async( . 추천_조회_API) , state: & state)
210205 case . 링크_공유_완료되었을때:
211206 state. shareContent = nil
Original file line number Diff line number Diff line change @@ -28,11 +28,11 @@ public extension RecommendView {
2828 WithPerceptionTracking {
2929 VStack ( spacing: 0 ) {
3030 interestList
31+ . background ( . pokit( . bg( . base) ) )
3132
3233 list
33- . padding ( . top, 12 )
34- . background ( . pokit( . bg( . primary) ) )
3534 }
35+ . background ( . pokit( . bg( . primary) ) )
3636 . ignoresSafeArea ( edges: . bottom)
3737 . sheet ( item: $store. shareContent) { content in
3838 if let shareURL = URL ( string: content. data) {
@@ -196,6 +196,7 @@ private extension RecommendView {
196196 }
197197 . padding ( . horizontal, 20 )
198198 . padding ( . bottom, 150 )
199+ . padding ( . top, 12 )
199200 }
200201 }
201202
You can’t perform that action at this time.
0 commit comments