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 @@ -56,9 +56,40 @@ private extension RecommendView {
5656 . padding ( . top, 8 )
5757 . padding ( . bottom, 12 )
5858 }
59+ . overlay ( alignment: . trailing) {
60+ interestEditButton
61+ }
5962 }
6063 }
6164
65+ var interestEditButton : some View {
66+ PokitIconButton (
67+ . icon( . edit) ,
68+ state: . default( . secondary) ,
69+ size: . small,
70+ shape: . round,
71+ action: { }
72+ )
73+ . padding ( [ . trailing, . vertical] , 8 )
74+ . padding ( . leading, 20 )
75+ . background (
76+ LinearGradient (
77+ stops: [
78+ Gradient . Stop (
79+ color: . pokit( . bg( . base) ) ,
80+ location: 0.00
81+ ) ,
82+ Gradient . Stop (
83+ color: . pokit( . bg( . base) ) . opacity ( 0 ) ,
84+ location: 1.00
85+ ) ,
86+ ] ,
87+ startPoint: UnitPoint ( x: 0.1 , y: 0.52 ) ,
88+ endPoint: UnitPoint ( x: 0 , y: 0.52 )
89+ )
90+ )
91+ }
92+
6293 @ViewBuilder
6394 func interestListContent( _ proxy: ScrollViewProxy ) -> some View {
6495 HStack ( spacing: 8 ) {
You can’t perform that action at this time.
0 commit comments