Skip to content

Commit bc9fb13

Browse files
committed
[design] #180 관심사 편집 버튼 추가
1 parent 9c7a17c commit bc9fb13

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

Projects/Feature/FeatureRecommend/Sources/Recommend/RecommendView.swift

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)