Skip to content

Commit

Permalink
chore: static 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
ssuojae committed Mar 18, 2024
1 parent dab8c27 commit 002e961
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions BoxOffice/Presentation/View/BoxOfficeCollectionView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import UIKit

final class BoxOfficeCollectionView: UICollectionView {
override init(frame: CGRect, collectionViewLayout layout: UICollectionViewLayout) {
super.init(frame: frame, collectionViewLayout: BoxOfficeCollectionView.createLayout())
super.init(frame: frame, collectionViewLayout: boxOfficeViewLayout)
configureCollectionView()
}

Expand All @@ -15,8 +15,8 @@ final class BoxOfficeCollectionView: UICollectionView {
self.autoresizingMask = [.flexibleWidth, .flexibleHeight]
self.backgroundColor = .systemBackground
}

private static func createLayout() -> UICollectionViewLayout {
let boxOfficeViewLayout: UICollectionViewLayout = {
let estimatedHeight = CGFloat(78)
let layoutSize = NSCollectionLayoutSize(widthDimension: .fractionalWidth(1.0),
heightDimension: .estimated(estimatedHeight))
Expand All @@ -29,6 +29,6 @@ final class BoxOfficeCollectionView: UICollectionView {
section.interGroupSpacing = 0
let layout = UICollectionViewCompositionalLayout(section: section)
return layout
}
}()
}

0 comments on commit 002e961

Please sign in to comment.