diff --git a/YELLO-iOS/YELLO-iOS/Presentation/Recommending/Main/ViewController/KakaoFriendViewController.swift b/YELLO-iOS/YELLO-iOS/Presentation/Recommending/Main/ViewController/KakaoFriendViewController.swift index 6b1be80b..b4504b90 100644 --- a/YELLO-iOS/YELLO-iOS/Presentation/Recommending/Main/ViewController/KakaoFriendViewController.swift +++ b/YELLO-iOS/YELLO-iOS/Presentation/Recommending/Main/ViewController/KakaoFriendViewController.swift @@ -11,7 +11,7 @@ import SnapKit import Then import Amplitude -final class KakaoFriendViewController: UIViewController { +final class KakaoFriendViewController: BaseViewController { // MARK: - Variables // MARK: Component @@ -22,24 +22,9 @@ final class KakaoFriendViewController: UIViewController { override func viewDidLoad() { Amplitude.instance().logEvent("view_recommend_kakao") super.viewDidLoad() - setUI() - } -} - -// MARK: - extension -extension KakaoFriendViewController { - - // MARK: Layout Helpers - private func setUI() { - setStyle() - setLayout() - } - - private func setStyle() { - view.backgroundColor = .black } - private func setLayout() { + override func setLayout() { let tabbarHeight = 60 + safeAreaBottomInset() view.addSubview(kakaoFriendView) diff --git a/YELLO-iOS/YELLO-iOS/Presentation/Recommending/Main/ViewController/SchoolFriendViewController.swift b/YELLO-iOS/YELLO-iOS/Presentation/Recommending/Main/ViewController/SchoolFriendViewController.swift index 884bb991..98dabc85 100644 --- a/YELLO-iOS/YELLO-iOS/Presentation/Recommending/Main/ViewController/SchoolFriendViewController.swift +++ b/YELLO-iOS/YELLO-iOS/Presentation/Recommending/Main/ViewController/SchoolFriendViewController.swift @@ -11,40 +11,21 @@ import Amplitude import SnapKit import Then -final class SchoolFriendViewController: UIViewController { +final class SchoolFriendViewController: BaseViewController { // MARK: - Variables // MARK: Component let schoolFriendView = SchoolFriendView() // MARK: - Function - // MARK: LifeCycle - override func viewDidLoad() { - super.viewDidLoad() - setUI() - } - + // MARK: LifeCycle override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(true) Amplitude.instance().logEvent("view_recommend_kakao") schoolFriendView.updateView() } -} - -// MARK: - extension -extension SchoolFriendViewController { - - // MARK: Layout Helpers - private func setUI() { - setStyle() - setLayout() - } - - private func setStyle() { - view.backgroundColor = .black - } - private func setLayout() { + override func setLayout() { let tabbarHeight = 60 + safeAreaBottomInset() view.addSubview(schoolFriendView)