-
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
[#16] hotfix: 1주차 수요일 코드리뷰 반영(구찌) #34
Conversation
Damagucci-Juice
commented
May 26, 2022
- 네이밍 관련 편집(navAppearance -> setUpNavigationAppearance)
- searchVC, LocationVC 의 수퍼클래스인 BackgroudViewController 를 선언
- bind(), layout(), attribute(), setUpNavigationAppearance() 등의 메서드들을 수퍼클래스에서 선언하므로 일부는 코드 중복을 줄임
} | ||
|
||
class BackgroundViewController: UIViewController, BackgroundViewControllerProtocol { | ||
|
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.
해당 클래스는 LocationViewController 에서만 상속받을 클래스인가요? 그렇다면 좀 더 구체적인 이름이 더 좋을 것 같습니다. BackgroundViewController는 너무 범용적인 이름이 아닐까 우려되네요...
searchController.searchBar.resignFirstResponder() | ||
return true | ||
} | ||
|
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.
delegate method를 사용하셨군요! 아주 좋습니다.
@@ -8,7 +8,7 @@ | |||
import UIKit | |||
import SnapKit | |||
|
|||
class SearchViewController: UIViewController { | |||
class SearchViewController: BackgroundViewController { | |||
|
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.
BackgroundViewController는 Search 탭 관련 뷰 컨트롤러들이 상속받을 클래스였군요. BackgroundViewController 보단 SearchBackgroundViewController 등이 좋지 않을까요?