Skip to content

Commit

Permalink
refactor #51: 개별 성격 전환 애니메이션 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
enebin committed Aug 15, 2023
1 parent cbfa1a0 commit 6b14257
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ public struct CirclePackView<DetailView: View>: View {
.onDragChanged(self.onDragChanged)
.onDragEnded(self.onDragEnded)
.padding(.top, 20)
.transition(.offset(x: 1, y: 1)) // Magic line. 왠진 모르겠지만 돌아가는 중이니 건들지 말 것
.transition(.offset(x: 1, y: 1).combined(with: .opacity))
// .transition(.offset(x: 1, y: 1)) // Magic line. 왠진 모르겠지만 돌아가는 중이니 건들지 말 것

VStack {
BottomSheetWrapperView {
Expand Down Expand Up @@ -253,7 +254,7 @@ private extension CirclePackView {
private extension CirclePackView {
// 테스트하고프면 https://www.cssportal.com/css-cubic-bezier-generator/
var customInteractiveSpringAnimation: Animation {
.timingCurve(0.175, 0.885, 0.32, 1.05, duration: 3) // 0.5
.timingCurve(0.175, 0.885, 0.32, 1.05, duration: 0.5) // default: 0.5
}

func onDragChanged(_ value: DragGesture.Value) {
Expand Down

0 comments on commit 6b14257

Please sign in to comment.