Skip to content

Commit

Permalink
[fix] #187 관심사 별 추천조회 애니메이션 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ShapeKim98 committed Mar 1, 2025
1 parent 36e187b commit e7cfe50
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ private extension RecommendFeature {
y: UnitPoint.leading.y
)
proxy.scrollTo("전체보기", anchor: anchor)
state.domain.contentList.data = nil
return shared(.async(.추천_조회_API), state: &state)
case let .관심사_버튼_눌렀을때(interest, proxy):
guard state.selectedInterest != interest else { return .none }
Expand All @@ -189,6 +190,7 @@ private extension RecommendFeature {
y: UnitPoint.leading.y
)
proxy.scrollTo(interest.description, anchor: anchor)
state.domain.contentList.data = nil
return shared(.async(.추천_조회_API), state: &state)
case .링크_공유_완료되었을때:
state.shareContent = nil
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,10 @@ private extension RecommendView {
? .filled(.primary)
: .default(.secondary),
size: .small,
shape: .round
) {
send(
.전체보기_버튼_눌렀을때(proxy),
animation: .pokitDissolve
)
}
shape: .round,
action: { send(.전체보기_버튼_눌렀을때(proxy)) }
)
.animation(.pokitDissolve, value: isAllSelected)
.id("전체보기")

ForEach(store.myInterestList) { interest in
Expand All @@ -135,13 +132,10 @@ private extension RecommendView {
? .filled(.primary)
: .default(.secondary),
size: .small,
shape: .round
) {
send(
.관심사_버튼_눌렀을때(interest, proxy),
animation: .pokitDissolve
)
}
shape: .round,
action: { send(.관심사_버튼_눌렀을때(interest, proxy)) }
)
.animation(.pokitDissolve, value: isSelected)
.id(interest.description)
}
}
Expand Down

0 comments on commit e7cfe50

Please sign in to comment.