-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FIX] #45 - 편집 모달 뷰 에니메이션 에러 수정 #54
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
willSet 속성을 사용하면 해결되는군요...! 잘 배워갑니다~!!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
융식최고~ 멋쨍이! 확인했씁니닷
@State private var clickEdit = false { | ||
willSet { | ||
UIView.setAnimationsEnabled(true) | ||
} didSet { | ||
DispatchQueue.main.async { | ||
UIView.setAnimationsEnabled(true) | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OH!
혹시 왜 속성 감시자를 사용하면 해결되는지 알 수 있을까요!?
정말 궁금했던 내용이어서 궁금하네요~! 🔥
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
swiftUI 오류라고 생각되는데, 정확하게 애니메이션 값을 설정해 주지 않아서 발생하는 것 같아요!
WirteView에서 didAppear 메소드안에 똑같이 애니메이션 값을 설정해 주면 완벽하게 해결되지 않아서
willSet과 didSet을 이용해주었습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
배워가유 ~~~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
willSet과 didSet을 이럴때 사용하는군요! 👍🏻👍🏻
Keychanges
Screenshots
To Reviewer
토글하는 변수에 didSet과 willSet을 이용하였습니다