Skip to content

Commit

Permalink
[Chore] 코드 정리 (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
seuriseuljjeok committed May 28, 2024
1 parent a0a9467 commit 6e09e9a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,10 @@ class LoginView: UIView {
private extension LoginView {

func setHierarchy() {

self.addSubviews(idTextField, pwTextField, loginButton)
}

func setLayout() {

idTextField.snp.makeConstraints {
$0.top.centerX.width.equalToSuperview()
$0.height.equalTo(52)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
//
// LoginViewModel.swift
// Tving_CloneProject
//
// Created by 윤희슬 on 5/28/24.
//

import Foundation
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import SnapKit
import Then

protocol MainPosterDelegate: AnyObject {

func didSwipePoster(index: Int, vc: UIPageViewController, vcData: [UIViewController])
}

Expand Down Expand Up @@ -58,9 +57,7 @@ final class MainPosterCell: UICollectionViewCell {
}
vcData += [vc]
}

setVCInPageVC()

}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,17 @@ class MovieView: UIView {
private extension MovieView {

func setHierarchy() {

self.addSubviews(dailyBoxOfficeCollectionView, loadingIndicator)
}

func setLayout() {

dailyBoxOfficeCollectionView.snp.makeConstraints {
$0.top.equalToSuperview().inset(Constant.Screen.topSafeAreaHeight + 80)
$0.horizontalEdges.bottom.equalToSuperview().inset(10)
}
}

func setStyle() {

dailyBoxOfficeCollectionView.do {
$0.backgroundColor = UIColor(resource: .black)
$0.showsVerticalScrollIndicator = false
Expand Down Expand Up @@ -90,12 +87,10 @@ private extension MovieView {
}

func registerCell() {

dailyBoxOfficeCollectionView.register(DailyBoxOfficeCell.self, forCellWithReuseIdentifier: DailyBoxOfficeCell.identifier)
}

func setDelegate() {

dailyBoxOfficeCollectionView.delegate = self
dailyBoxOfficeCollectionView.dataSource = self
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,6 @@ extension PageControlButtonView: UICollectionViewDelegateFlowLayout {
}
}

extension PageControlButtonView: UICollectionViewDelegate {}

extension PageControlButtonView: UICollectionViewDataSource {

func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
Expand Down

0 comments on commit 6e09e9a

Please sign in to comment.