Skip to content

Commit

Permalink
Refactor: 불필요한 enum 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
Minny27 committed Mar 14, 2024
1 parent 71004f8 commit 3e5febb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions Projects/Features/Falling/Src/Home/FallingHomeView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ import UIKit
import Core
import DSKit

enum ElementKind: String {
case badge, header, footer
}

final class FallingHomeView: TFBaseView {
lazy var collectionView: UICollectionView = {
let flowLayout = UICollectionViewCompositionalLayout.verticalListLayout(withEstimatedHeight: ((UIWindow.keyWindow?.frame.width ?? 0) - 32) * 1.64)
Expand Down Expand Up @@ -69,7 +65,7 @@ extension NSCollectionLayoutSection {
heightDimension: .estimated(((UIWindow.keyWindow?.frame.width ?? 0) - 32) * 1.64))
let sectionFooter = NSCollectionLayoutBoundarySupplementaryItem(
layoutSize: footerSize,
elementKind: ElementKind.footer.rawValue,
elementKind: UICollectionView.elementKindSectionFooter,
alignment: .bottom
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ final class FallingHomeViewController: TFBaseViewController {
}

let footerRegistration = UICollectionView.SupplementaryRegistration
<UICollectionReusableView>(elementKind: ElementKind.footer.rawValue) { _,_,_ in }
<UICollectionReusableView>(elementKind: UICollectionView.elementKindSectionFooter) { _,_,_ in }

dataSource = DataSource(collectionView: homeView.collectionView, cellProvider: { collectionView, indexPath, itemIdentifier in
return collectionView.dequeueConfiguredReusableCell(using: profileCellRegistration, for: indexPath, item: itemIdentifier)
Expand Down

0 comments on commit 3e5febb

Please sign in to comment.