-
Notifications
You must be signed in to change notification settings - Fork 0
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
Navigation 뒤로가기 시, LoginDialog가 바로 사라지지 않는 문제 #178
Comments
- LoginDialog가 나타날 때, toolbar Button disable 처리 - CustomDialog가 나타날 때, 제스쳐를 이용한 Back 못하게 처리
[Refactoring] NavigationPostsView 탭뷰, LoginDialog(CustomDialog) 오류 해결 #178
…178 *문제 및 원인* RecordViewModel 내에 isShowRatingDialog 프로퍼티를 AddTagView, SearchTagView에서 사용함으로 발생한 문제 - AddTagView와 SearchTagView 각각 isSowRatingDialog를 따로 가지고 있게 코드 수정
추가1. CustomDialog 쓰는 부분에서의 ToolBarItem disabled 처리2. SearchTagView가 sheet 형식이라, 닫힐 때 AddTagView에서도 CustomDialog(Rating)이 뜨는 문제문제 및 원인AddTagView의 CustomDialog와 SearchTagView CustomDialog 처리를 RecordViewMdoel의 isShowRatingDialog 상태 프로퍼티로 해줬음. (CustomDialog가 disappear 될 때, isShowRatingDialog의 값이 false가 되는 형태) AddTagView 위에 SearchTagView가 올라오는데, sheet이다보니까 제스쳐로 SearchTagView를 disappear 시킬 수 있는 상황. 해결 방법기존 RecordViewModel의 isShowRatingDialog 상태 프로퍼티를 없애고 |
비그로인 중, 로그인 다이얼로그가 나타나는 상황
현재 구현한 코드의 내용
특정 상황에서 로그인 다이얼로그를 띄우기 위해 AuthViewModel에 isShowLoginDialog 프로퍼티를 생성
앞서 언급한 뷰의 특정한 상황이 발생되었을 때, AuthViewModel의 signInStatus의 값을 판별하여 그에 따라 isShowLoginDialog의 값을 변경해줌
각각의 뷰에서는 isShowLoginDialog의 값에 따라 CustomDialog를 띄워줌
CustomDialog 내 오른쪽 버튼에 navigationLink를 사용하는 코드를 추가
여기서 발생한 문제
로그인 다이얼로그가 뷰에 띄워진 상태에서 Navigation을 Back버튼을 누르거나 제스쳐를 통한 Back 이 이루어졌을 경우,
Disappear에서 isShowDialog를 false로 바꿔주기 전에 이전 화면이 나타나게 되면서 이전 화면에도 로그인 다이얼로그가 나타나는 현상이 발생
The text was updated successfully, but these errors were encountered: