Skip to content
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] #261 - 햄버거바 로그인 관련 수정 #262

Merged
merged 5 commits into from
Sep 13, 2022

Conversation

0inn
Copy link
Contributor

@0inn 0inn commented Sep 12, 2022

🔥 Pull requests

⛳️ 작업한 브랜치

👷 작업한 내용

로그인이 필요해요 버튼 변경했습니다.
기존 로그인 알림창 나타나는 방식에서 로그인 화면으로 넘어가도록 수정했습니다.

🚨 참고 사항

navigationController push로 넘어가도록 설정했는데 화면 전환 자연스러운지 봐주세요 ~!

📸 스크린샷

default.mov

📟 관련 이슈

@0inn 0inn added Fix 오류 해결, 코드 수정 ☁️Jenny labels Sep 12, 2022
@0inn 0inn self-assigned this Sep 12, 2022
@L-j-h-c L-j-h-c self-requested a review September 13, 2022 01:46
Copy link
Member

@L-j-h-c L-j-h-c left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다~ 수정후 머지 부탁드려요!

@@ -442,7 +442,7 @@ extension HamburgerBarVC {

[needLoginButton, needLoginImageButton].forEach {
$0.press {
self.presentSocialLoginAlert()
self.pushSocialLoginVC()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

p3;

전달이 잘못 된 것 같은데 새로운 내비게이션 컨트롤러를 present하는 방식으로 해주세용~~! modalTransition은 crossDisolve로 하면 될 것 같습니당

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
self.pushSocialLoginVC()
private func presentSocialLoginVC() {
let loginVC = ModuleFactory.resolve().makeLoginVC()
loginVC.modalTransitionStyle = .crossDissolve
loginVC.modalPresentationStyle = .fullScreen
self.present(loginVC, animated: true)
}

새로운 네비게이션을 present 한다는게 그냥 이런식으로 present 하는 게 맞는 걸까요 ? ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let rootViewController = ModuleFactory.resolve().makeSplashVC()
let navigation = UINavigationController(rootViewController: rootViewController)
navigation.modalTransitionStyle = .crossDissolve
navigation.modalPresentationStyle = .fullScreen
self.present(navigation, animated: true)

UINavigationController도 ViewController의 SubClass이기 때문에 이런식으로 띄워주면 됩니다!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

30b3aa5
화긴화긴요~ 수고하셨슴당

@0inn 0inn merged commit 99e5fae into Health-Food-Me:develop Sep 13, 2022
@0inn 0inn deleted the feature/#261 branch September 13, 2022 05:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fix 오류 해결, 코드 수정 ☁️Jenny
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Fix] 햄버거바 로그인 관련 수정
2 participants