-
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
[Network] #105 - Univ Select API 연동 #111
Conversation
Conflicts: Hankkijogbo/Hankkijogbo/Application/SceneDelegate.swift Hankkijogbo/Hankkijogbo/Present/CreateZip/ViewModel/CreateZipViewModel.swift
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.
고생이 많았소이다.
private var titleButtonAction: ButtonAction? { | ||
didSet { | ||
let tapGesture = UITapGestureRecognizer(target: self, action: #selector(titleButtonDidTap)) | ||
titleStackView.addGestureRecognizer(tapGesture) | ||
} | ||
} |
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.
p2: titleButtonDidTap
이라고 해서 내 titleButton
을 찾아 조금 헤매었다오. 나의 아기 벗이여, 혹시 직관적으로 titleStackViewDidTap
은 어떠한가?
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.
음 근데, 토글 버튼도 있어서 button으로 두었소....
func saveUniversity(_ university: UniversityModel) { | ||
print("대학정보 저장") | ||
let defaults = UserDefaults.standard | ||
if let encoded = try? JSONEncoder().encode(university) { | ||
defaults.set(encoded, forKey: "university") | ||
} | ||
} |
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 postReissue(completion: @escaping (NetworkResult<PostReissueResponseData>) -> Void) { | ||
provider.request(.postReissue) { result in | ||
switch result { | ||
case .success(let response): | ||
let networkResult: NetworkResult<PostReissueResponseData> = self.fetchNetworkResult(statusCode: response.statusCode, data: response.data) | ||
completion(networkResult) | ||
case .failure(let error): | ||
if let response = error.response { | ||
let networkResult: NetworkResult<PostReissueResponseData> = self.fetchNetworkResult(statusCode: response.statusCode, data: response.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.
APPLE TV
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.
LGTM
@@ -27,9 +27,32 @@ extension UserDefaults { | |||
func getAccesshToken() -> String { | |||
return UserDefaults.standard.string(forKey: UserDefaultsKey.accessToken.rawValue) ?? "" | |||
} | |||
|
|||
func saveUniversity(_ university: UniversityModel) { |
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.
thanks girl
🔥 Pull requests
👷 작업한 내용
🚨 참고 사항
University
정보를 User Default 에 저장합니다.대학 이름은 이런식으로 가져오면 됩니다. (다른 것도 동일함)
📸 스크린샷
✅ Check List
📟 관련 이슈