From 6df1f93330795d1e39c44530eadc96a196a53b71 Mon Sep 17 00:00:00 2001 From: boyeon Date: Thu, 18 Jan 2024 01:07:17 +0900 Subject: [PATCH] =?UTF-8?q?[Fix/#102]=20HomeViewController=20-=20=EB=84=A4?= =?UTF-8?q?=EB=B9=84=EA=B2=8C=EC=9D=B4=EC=85=98=20=EB=B0=94=20=EB=A0=88?= =?UTF-8?q?=EC=9D=B4=EC=95=84=EC=9B=83=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Home/ViewControllers/HomeViewController.swift | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/HMH_iOS/HMH_iOS/Presentation/Home/ViewControllers/HomeViewController.swift b/HMH_iOS/HMH_iOS/Presentation/Home/ViewControllers/HomeViewController.swift index 0be9007..38cca6c 100644 --- a/HMH_iOS/HMH_iOS/Presentation/Home/ViewControllers/HomeViewController.swift +++ b/HMH_iOS/HMH_iOS/Presentation/Home/ViewControllers/HomeViewController.swift @@ -8,7 +8,7 @@ import UIKit final class HomeViewController: UIViewController { - private let navigationBar = HMHNavigationBar(leftItem: .logo, isBackButton: false, isTitleLabel: false, isPointImage: false, isBackGroundGray: false, titleText: "") + private let homeView = HMHHomeView() let provider = Providers.challengeProvider @@ -46,16 +46,13 @@ final class HomeViewController: UIViewController { } private func setHierarchy() { - view.addSubviews(navigationBar, homeView) + view.addSubview(homeView) } private func setConstraints() { - navigationBar.snp.makeConstraints { - $0.top.leading.trailing.equalToSuperview() - } homeView.snp.makeConstraints { - $0.top.equalTo(navigationBar.snp.bottom) + $0.top.equalToSuperview() $0.bottom.horizontalEdges.equalToSuperview() } }