Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map Search 화면 구현 #23

Merged
merged 10 commits into from
Mar 20, 2024
Next Next commit
Refactor: 필요없는 enum 삭제
Minny27 committed Mar 14, 2024
commit ad53115f839cb29abee041cff03850609bf43a47
Original file line number Diff line number Diff line change
@@ -7,15 +7,6 @@

import UIKit

struct ElementKind {
static let badge = "badge-element-kind"
static let background = "background-element-kind"
static let sectionHeader = "section-header-element-kind"
static let sectionFooter = "section-footer-element-kind"
static let layoutHeader = "layout-header-element-kind"
static let layoutFooter = "layout-footer-element-kind"
}

extension UICollectionViewCompositionalLayout {
static func listLayout(withEstimatedHeight estimatedHeight: CGFloat = 100) -> UICollectionViewCompositionalLayout {

@@ -58,7 +49,7 @@ extension NSCollectionLayoutSection {

let sectionHeader = NSCollectionLayoutBoundarySupplementaryItem(
layoutSize: sectionHeaderSize,
elementKind: ElementKind.sectionHeader,
elementKind: UICollectionView.elementKindSectionHeader,
alignment: .top
)

@@ -104,7 +95,7 @@ extension NSCollectionLayoutSection {

let sectionHeader = NSCollectionLayoutBoundarySupplementaryItem(
layoutSize: sectionHeaderSize,
elementKind: ElementKind.sectionHeader,
elementKind: UICollectionView.elementKindSectionHeader,
alignment: .top
)