kko-okk / kko_okk

Apple Developer Academy MC2: 꼬옥(kko_okk) (Afternoon session Team16)
GNU Lesser General Public License v2.1
7 stars 1 forks source link

OnBoardingView 꼭 눌렀을 때 이동하는 애니메이션을 만들었습니다. #127

Closed Valentino1994 closed 2 years ago

Valentino1994 commented 2 years ago

Motivation

우리의 Key Gesture를 온보딩에서 학습시키고 넘어갈 필요가 있었습니다.

Key Change

이전과 디자인도 달라졌고 꼭 눌렀을 때 바뀌는 모션을 구현했습니다. 손을 떼면 다시 애니메이션이 동작합니다.

 .onLongPressGesture(minimumDuration: 2, maximumDistance: 100) {
                        if nowSubject == "parent" && childPressed == true {
                            togetherPressed = true
                        } else if nowSubject == "child" && parentPressed == true {
                            togetherPressed = true
                        }
                    } onPressingChanged: { inProgress in
                        if nowSubject == "parent" {
                            parentPressed = inProgress
                        } else if nowSubject == "child" {
                            childPressed = inProgress
                        }
                        animationState = inProgress ? false : true
                    }

To Reviewers

예니 화이팅

LeeSungNo-ian commented 2 years ago

굿 좋습니다!