@@ -38,7 +38,6 @@ struct BookmarkButton: View {
3838// 혜택 카드 컴포넌트
3939struct BenefitCard : View {
4040 let benefit : CouponTopModel
41- @Binding var isBookmarked : Bool
4241
4342 var body : some View {
4443 VStack ( alignment: . leading, spacing: 10 ) {
@@ -50,8 +49,6 @@ struct BenefitCard: View {
5049 width: BenefitViewConstants . Layout. cardWidth,
5150 height: BenefitViewConstants . Layout. cardWidth
5251 )
53-
54- BookmarkButton ( isBookmarked: $isBookmarked)
5552 }
5653
5754 VStack ( alignment: . leading, spacing: 4 ) {
@@ -72,24 +69,23 @@ struct BenefitCard: View {
7269
7370struct PopularBenefitView : View {
7471 @Binding var popularCoupon : [ CouponTopModel ]
75- @State private var isBookmarked : Bool = false
7672
7773 var body : some View {
7874 VStack ( alignment: . leading, spacing: 20 ) {
7975 Text ( " 인기 혜택 " )
8076 . pretendardFont ( size: BenefitViewConstants . Font. titleSize, weight: . bold)
8177 . foregroundColor ( . black)
78+ . padding ( . leading, 20 )
8279
8380 ScrollView ( . horizontal, showsIndicators: false ) {
8481 HStack ( spacing: BenefitViewConstants . Layout. spacing) {
8582 ForEach ( popularCoupon) { coupon in
8683 BenefitCard (
87- benefit: coupon,
88- isBookmarked : $isBookmarked )
84+ benefit: coupon
85+ )
8986 }
90- }
87+ } . padding ( . leading , 20 )
9188 }
9289 }
93- . padding ( . leading, 20 )
9490 }
9591}
0 commit comments