Skip to content

Commit

Permalink
restyle: #271 코드컨벤션 통일
Browse files Browse the repository at this point in the history
  • Loading branch information
tmfrlrkvlek committed Nov 25, 2021
1 parent 8c8a6c5 commit f17ce06
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
8 changes: 6 additions & 2 deletions BBus/BBus/Foreground/Home/View/HomeView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ final class HomeView: UIView {

private lazy var favoriteCollectionView: UICollectionView = {
let collectionView = UICollectionView(frame: CGRect(), collectionViewLayout: self.collectionViewLayout())
collectionView.register(FavoriteCollectionHeaderView.self, forSupplementaryViewOfKind: UICollectionView.elementKindSectionHeader, withReuseIdentifier: FavoriteCollectionHeaderView.identifier)
collectionView.register(SourceFooterView.self, forSupplementaryViewOfKind: UICollectionView.elementKindSectionFooter, withReuseIdentifier: SourceFooterView.identifier)
collectionView.register(FavoriteCollectionHeaderView.self,
forSupplementaryViewOfKind: UICollectionView.elementKindSectionHeader,
withReuseIdentifier: FavoriteCollectionHeaderView.identifier)
collectionView.register(SourceFooterView.self,
forSupplementaryViewOfKind: UICollectionView.elementKindSectionFooter,
withReuseIdentifier: SourceFooterView.identifier)
collectionView.register(FavoriteCollectionViewCell.self, forCellWithReuseIdentifier: FavoriteCollectionViewCell.identifier)
let backgroundView = UIView()
backgroundView.backgroundColor = BBusColor.bbusBackground
Expand Down
5 changes: 5 additions & 0 deletions BBus/BBus/Foreground/Station/View/StationView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ final class StationView: UIView {
collectionView.register(SimpleCollectionHeaderView.self,
forSupplementaryViewOfKind: UICollectionView.elementKindSectionHeader,
withReuseIdentifier: SimpleCollectionHeaderView.identifier)
collectionView.register(SourceFooterView.self,
forSupplementaryViewOfKind: UICollectionView.elementKindSectionFooter,
withReuseIdentifier: SourceFooterView.identifier)
collectionView.backgroundColor = BBusColor.bbusLightGray
return collectionView
}()
Expand Down Expand Up @@ -71,7 +74,9 @@ final class StationView: UIView {
self.stationBodyCollectionView.trailingAnchor.constraint(equalTo: self.stationScrollContentsView.trailingAnchor),
self.stationBodyCollectionView.topAnchor.constraint(equalTo: self.stationHeaderView.bottomAnchor)
])

self.stationScrollView.addSubviews(self.stationScrollContentsView)

NSLayoutConstraint.activate([
self.stationScrollContentsView.topAnchor.constraint(equalTo: self.stationScrollView.contentLayoutGuide.topAnchor),
self.stationScrollContentsView.leadingAnchor.constraint(equalTo: self.stationScrollView.contentLayoutGuide.leadingAnchor),
Expand Down

0 comments on commit f17ce06

Please sign in to comment.