Skip to content

Commit

Permalink
[feat] feedVC UI 작업 (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
BAEKYUJEONG committed Aug 30, 2024
1 parent 2598ad4 commit 6f4199c
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions PLUV/Feed/FeedViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,18 @@ class FeedViewController: UIViewController {
$0.textColor = .gray800
$0.font = .systemFont(ofSize: 20, weight: .semibold)
}
private var feedCollectionView: UICollectionView = {
let layout = UICollectionViewFlowLayout()
layout.minimumLineSpacing = 16
layout.minimumInteritemSpacing = 16
layout.scrollDirection = .vertical
layout.sectionInset = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0)

let cv = UICollectionView(frame: .zero, collectionViewLayout: layout)
cv.register(SelectPlaylistCollectionViewCell.self, forCellWithReuseIdentifier: SelectPlaylistCollectionViewCell.identifier)

return cv
}()

override func viewDidLoad() {
super.viewDidLoad()
Expand Down Expand Up @@ -47,5 +59,14 @@ class FeedViewController: UIViewController {
make.top.leading.trailing.bottom.equalToSuperview().inset(16)
make.height.equalTo(28)
}

self.view.addSubview(feedCollectionView)
feedCollectionView.snp.makeConstraints { make in
make.top.equalTo(titleView.snp.bottom)
make.leading.trailing.equalToSuperview()
make.bottom.equalToSuperview().inset(80)
}
feedCollectionView.showsVerticalScrollIndicator = false
feedCollectionView.allowsMultipleSelection = false
}
}

0 comments on commit 6f4199c

Please sign in to comment.