-
Notifications
You must be signed in to change notification settings - Fork 3
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] 네트워크 오류시 띄우는 얼럿 뷰 추가 및 홈 컨트롤러 levelProgressView 이슈 (#210) #211
The head ref may contain hidden characters: "feat/#210-\uC5BC\uB7FF\uBDF0"
Changes from all commits
c9bc7a3
2f9d3fd
3179031
7a29ea9
42fbd93
2a435b8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,11 +14,10 @@ class LoadingIndicator { | |
guard let window = UIApplication.shared.windows.last else { return } | ||
|
||
let loadingIndicatorView: UIActivityIndicatorView | ||
if let existedView = window.subviews.first(where: { $0 is UIActivityIndicatorView } ) as? UIActivityIndicatorView { | ||
if let existedView = window.subviews.first(where: { $0 is UIActivityIndicatorView }) as? UIActivityIndicatorView { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 역시 인간 린트.. |
||
loadingIndicatorView = existedView | ||
} else { | ||
loadingIndicatorView = UIActivityIndicatorView(style: .large) | ||
/// 다른 UI가 눌리지 않도록 indicatorView의 크기를 full로 할당 | ||
loadingIndicatorView.frame = window.frame | ||
loadingIndicatorView.color = .lightGray | ||
window.addSubview(loadingIndicatorView) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,7 +86,7 @@ extension AuthViewController { | |
LoadingIndicator.hideLoading() | ||
self.dismiss(animated: true) | ||
default: | ||
LoadingIndicator.hideLoading() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hideLoading() 없애면 로딩 뷰가 계속 보이고 그 위에 Alert가 뜰 거 같은데 괜찮을까요? |
||
self.showAlert(title: "네트워크 오류로 인해\n데이터를 불러올 수 없습니다.\n다시 시도해 주세요.") | ||
print(response) | ||
} | ||
} | ||
|
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.
여기에 hideLoading()을 넣어주는 것도 괜찮겠네요!
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.
넵 수정하겠습니다