-
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
[프로필] 회원 탈퇴 오류 수정 및 Storage 사진 삭제 구현 #126
Conversation
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 을 날리시다니
이러면 제가 눈치채지 못할 거라고 생각하신겁니까..?
여튼간에... 수고하셨습니다 ^^7
if let error = error { | ||
completion(FBStorageError.failedDeleteData) | ||
return | ||
} | ||
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.
return 이 필수라면 guard let 도 방법이겠군요
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.
그리고 swift 5.7 부터 guard let 이나 if let 구문 사용 시 바인딩하려는 변수 이름이 같다면
if let error {
print(error)
}
guard let error else {
return
}
print(error)
요렇게 간단하게 사용할 수 있더라구요
이미 알고 계실것 같지만 덧붙여서 말씀드려봅니당 (_ _)
@@ -9,6 +9,8 @@ import SnapKit | |||
import UIKit | |||
|
|||
final class ProfileView: UIView, BaseView { | |||
let loadingIndicator = LoadingIndicatorView() |
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.
원래 있는 View 를 잘 활용하셨군요
func applyLoadingIndicator() { | ||
addSubview(loadingIndicator) | ||
loadingIndicator.snp.makeConstraints { | ||
$0.center.equalToSuperview() | ||
} | ||
} |
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.
사실 CustomNavigationController 클래스에 addIndicatorView, removeIndicatorView 메소드가 구현되어있습니다.
LoadingIndicatorView 를 VC 가 가지고있는 View 에 추가하게 되면 navigationBar 는 덮히지 않는 현상이 발생해서 navigationController 에 넣어두었습니다. 이 점을 활용해도 좋을 것 같아요
더 좋은 의견이 있으면 말씀해주세요 💙
제출 전 필수 확인 사항:
작업 내용:
이번에 공들였던 부분: