Skip to content
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

Open
wants to merge 419 commits into
base: review
Choose a base branch
from

Conversation

Jonghoon-Song9310
Copy link

@Jonghoon-Song9310 Jonghoon-Song9310 commented Aug 24, 2021

No description provided.

SHIVVVPP and others added 30 commits December 8, 2020 20:41
(boostcamp-2020#91) feat: Location accuracy에 따른 값 전송 유무 로직 추가
(boostcamp-2020#88) Motion Type에 따라 자동으로 러닝을 일시정지 및 재시작한다
SHIVVVPP and others added 28 commits December 20, 2020 01:50
(boostcamp-2020#191) fix: 다크모드 및 라이트모드 toggle시 annotation이 바뀌는 버그 수정
let imageData = try Data(contentsOf: fileURL)
return imageData
} catch {
print(error)
Copy link
Author

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)
Copy link
Author

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 "야간"
Copy link
Author

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)
Copy link
Author

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 "목표 설정"
Copy link
Author

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 {
Copy link
Author

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
Copy link
Author

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.")
Copy link
Author

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에서는 무시하도록 처리함

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants