-
Notifications
You must be signed in to change notification settings - Fork 10
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
부스트캠프 6기 iOS 코드 리뷰어 지원 #208
base: review
Are you sure you want to change the base?
부스트캠프 6기 iOS 코드 리뷰어 지원 #208
Conversation
(boostcamp-2020#25 boostcamp-2020#26) ActivityScene TotalView 연결 및 Date PickerView 구현
(boostcamp-2020#97) feat: running split scene 구현
(boostcamp-2020#91) feat: Location accuracy에 따른 값 전송 유무 로직 추가
(boostcamp-2020#88) Motion Type에 따라 자동으로 러닝을 일시정지 및 재시작한다
…e <--> EditProfileScene)
(boostcamp-2020#191) fix: 다크모드 및 라이트모드 toggle시 annotation이 바뀌는 버그 수정
…/179 (boostcamp-2020#136, 161, 179) 및 코드 컨벤셔닝
fix: Calorie 누적 오류 Int -> Double
(boostcamp-2020#196)fix: pausedWorkout 사운드 문제
(boostcamp-2020#198) feat: split detail 데이터 바인딩
let imageData = try Data(contentsOf: fileURL) | ||
return imageData | ||
} catch { | ||
print(error) |
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.
에러가 발생하는 경우에 처리 로직이 필요하지 않을까요?
do { | ||
try imageData.write(to: url) | ||
} catch { | ||
print(error) |
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.
에러가 발생하는 경우에 처리 로직이 필요하지 않을까요?
guard let hourMinSec = self.hourMinSec else { return "알수없는 시간대" } | ||
switch hourMinSec.hour { | ||
case 22 ... 24, 0 ..< 3: | ||
return "야간" |
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.
localization을 도입하여 다양한 언어를 대응해보는건 어떨까요?
tabBarController.tabBar.tintColor = TabBarPage.selectColor | ||
tabBarController.tabBar.unselectedItemTintColor = TabBarPage.unselectColor | ||
tabBarController.tabBar.barTintColor = .systemBackground | ||
viewControllers[0].tabBarItem = UITabBarItem(title: nil, image: UIImage(named: "activity4"), tag: 0) |
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.
배열에 직접 접근하면 Crash가 발생 할 수 있으니 범위 체크를 하는건 어떨까요?
case .speed: | ||
return "속도" | ||
case .none: | ||
return "목표 설정" |
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.
이 부분도 localization을 공부하여 적용해보는건 어떨까요?
|
||
timer = Timer(fire: Date(), interval: 1.0 / 100.0, repeats: true, | ||
block: { _ in | ||
if let data = self.motion.deviceMotion { |
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.
코드가 너무 깊어지는데 외부에서 블럭을 생성하여 넣어주는식으로 변경하는건 어떨까요?
} | ||
.store(in: &cancellables) | ||
|
||
// locationProvider.locationSubject |
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.
사용하지 않은 코드는 제거해주세요~
} | ||
|
||
deinit { | ||
print("[Memory \(Date())] 🌙ViewModel⭐️ \(Self.self) deallocated.") |
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.
print로 로그를 찍는것 보다 ConsoleLogger를 만들고 거기서 처리하는건 어떨까요?
ConsoleLogger를 만들면 이점은
- print로 찍는 경우 많은 로그가 쌓이는 경우에 제대로 노출이 안되는 문제가 있음 (serial Queue로 관리 필요)
- AppStore version에서는 무시하도록 처리함
No description provided.