-
Notifications
You must be signed in to change notification settings - Fork 5
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
[FEAT] #184 - 리스트뷰, 메인 일부 서버 연결 #225
Conversation
if isList == true { | ||
switch result { | ||
case .success(let response): | ||
let statusCode = response.statusCode | ||
let data = response.data | ||
|
||
let networkResult = self.judgeCardListFetchStatus(by: statusCode, data) | ||
completion(networkResult) | ||
|
||
case .failure(let err): | ||
print(err) | ||
} | ||
} else { | ||
switch result { | ||
case .success(let response): | ||
let statusCode = response.statusCode | ||
let data = response.data | ||
|
||
let networkResult = self.judgeMainListFetchStatus(by: statusCode, data) | ||
completion(networkResult) |
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.
👍 추가하셨군요!
case .cardDetailFetch, .cardListFetch, .cardDelete, .cardListEdit: | ||
return ["Content-Type": "application/json", | ||
"Authorization": "Bearer " + UserDefaults.standard.string(forKey: Const.UserDefaults.accessToken)!] |
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.
이제 const 에 선언해둔거 지우고 이렇게 코드 바꾸기 시작하면 될거 같아여
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.
넴넴!
} else { | ||
|
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.
여기부분에 65 번 66 번 코드를 넣으면 될거 같네용
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.
아 맞네요!!! ㅋㅌㅋㅌㅋㅌㅋ쓰고 까먹어버렸...감사합니돠
func changeRootViewController(_ viewControllerToPresent: UIViewController) { | ||
if let window = UIApplication.shared.windows.first { | ||
window.rootViewController = viewControllerToPresent | ||
UIView.transition(with: window, duration: 0.5, options: .transitionCrossDissolve, animations: nil) | ||
} else { | ||
viewControllerToPresent.modalPresentationStyle = .overFullScreen | ||
self.present(viewControllerToPresent, animated: true, completion: nil) | ||
} | ||
} |
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.
굳굳 고민 많이 하셨을거 같네여!
🌴 PR 요약
🌱 작업한 브랜치
🌱 작업한 내용
늦어서 죄송합니다 교수님덜😭😭
📸 스크린샷
📮 관련 이슈