File tree Expand file tree Collapse file tree
Projects/Feature/FeatureRecommend/Sources/Recommend Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -154,13 +154,23 @@ private extension RecommendFeature {
154154 guard state. selectedInterest != nil else { return . none }
155155
156156 state. selectedInterest = nil
157- proxy. scrollTo ( " 전체보기 " , anchor: . leading)
157+ let leading = 20 / UIScreen. main. bounds. width
158+ let anchor = UnitPoint (
159+ x: leading,
160+ y: UnitPoint . leading. y
161+ )
162+ proxy. scrollTo ( " 전체보기 " , anchor: anchor)
158163 return shared ( . async( . 추천_조회_API) , state: & state)
159164 case let . 관심사_버튼_눌렀을때( interest, proxy) :
160165 guard state. selectedInterest != interest else { return . none }
161166
162167 state. selectedInterest = interest
163- proxy. scrollTo ( interest. description, anchor: . leading)
168+ let leading = 20 / UIScreen. main. bounds. width
169+ let anchor = UnitPoint (
170+ x: leading,
171+ y: UnitPoint . leading. y
172+ )
173+ proxy. scrollTo ( interest. description, anchor: anchor)
164174 return shared ( . async( . 추천_조회_API) , state: & state)
165175 case . 링크_공유_완료되었을때:
166176 state. shareContent = nil
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ private extension RecommendView {
5353 interestListContent ( proxy)
5454 . padding ( . horizontal, 20 )
5555 . padding ( . vertical, 8 )
56+ . padding ( . trailing, 40 )
5657 }
5758 . overlay ( alignment: . trailing) {
5859 interestEditButton
@@ -69,8 +70,8 @@ private extension RecommendView {
6970 shape: . round,
7071 action: { }
7172 )
72- . padding ( [ . trailing , . vertical] , 8 )
73- . padding ( . leading , 20 )
73+ . padding ( [ . leading , . vertical] , 8 )
74+ . padding ( . trailing , 20 )
7475 . background (
7576 LinearGradient (
7677 stops: [
@@ -246,6 +247,7 @@ private extension RecommendView {
246247 Text ( content. title)
247248 . foregroundStyle ( . pokit( . text( . primary) ) )
248249 . pokitFont ( . b3( . b) )
250+ . multilineTextAlignment ( . leading)
249251 . lineLimit ( 2 )
250252 }
251253 }
You can’t perform that action at this time.
0 commit comments