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

[#16] hotfix: 1주차 수요일 코드리뷰 반영(구찌) #34

Merged
merged 2 commits into from
May 26, 2022

Conversation

Damagucci-Juice
Copy link
Collaborator

  • 네이밍 관련 편집(navAppearance -> setUpNavigationAppearance)
  • searchVC, LocationVC 의 수퍼클래스인 BackgroudViewController 를 선언
    • bind(), layout(), attribute(), setUpNavigationAppearance() 등의 메서드들을 수퍼클래스에서 선언하므로 일부는 코드 중복을 줄임

@Damagucci-Juice Damagucci-Juice added 📱iOS iOS Issues hotfix 긴급한 수정(코드리뷰 반영) labels May 26, 2022
@Damagucci-Juice Damagucci-Juice self-assigned this May 26, 2022
}

class BackgroundViewController: UIViewController, BackgroundViewControllerProtocol {

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

해당 클래스는 LocationViewController 에서만 상속받을 클래스인가요? 그렇다면 좀 더 구체적인 이름이 더 좋을 것 같습니다. BackgroundViewController는 너무 범용적인 이름이 아닐까 우려되네요...

searchController.searchBar.resignFirstResponder()
return true
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delegate method를 사용하셨군요! 아주 좋습니다.

@@ -8,7 +8,7 @@
import UIKit
import SnapKit

class SearchViewController: UIViewController {
class SearchViewController: BackgroundViewController {

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BackgroundViewController는 Search 탭 관련 뷰 컨트롤러들이 상속받을 클래스였군요. BackgroundViewController 보단 SearchBackgroundViewController 등이 좋지 않을까요?

@Damagucci-Juice Damagucci-Juice merged commit cca9fa6 into ios-dev May 26, 2022
@Damagucci-Juice Damagucci-Juice deleted the hotfix220526gucci branch May 26, 2022 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hotfix 긴급한 수정(코드리뷰 반영) 📱iOS iOS Issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants