Skip to content

Commit abbd6d2

Browse files
Merge pull request #134 from PopPool/fix/#129-MapViewCategory-Integration-bug
[fix] 지도 탭에서 카테고리태그가 합쳐치고 ... 축약되는 이슈 수정
2 parents a983c7c + 90ea3a6 commit abbd6d2

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

Poppool/PresentationLayer/Presentation/Presentation/Scene/Map/FillterSheetView/FilterBottomSheetView.swift

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ final class FilterBottomSheetView: UIView {
4242
let layout = UICollectionViewCompositionalLayout { section, _ in
4343
let itemSize = NSCollectionLayoutSize(
4444
widthDimension: .estimated(26),
45-
heightDimension: .absolute(36)
45+
heightDimension: .estimated(36)
4646
)
4747
let item = NSCollectionLayoutItem(layoutSize: itemSize)
4848

4949
let groupSize = NSCollectionLayoutSize(
5050
widthDimension: .fractionalWidth(1.0),
51-
heightDimension: .absolute(36)
51+
heightDimension: .estimated(36)
5252
)
5353
let group = NSCollectionLayoutGroup.horizontal(
5454
layoutSize: groupSize,
@@ -391,16 +391,22 @@ extension FilterBottomSheetView {
391391
var filters: [String] = []
392392

393393
if let locationText = locationText, !locationText.isEmpty {
394-
filters.append(locationText)
394+
let locations = locationText
395+
.split(separator: ",")
396+
.map { $0.trimmingCharacters(in: .whitespaces) }
397+
filters += locations
395398
}
399+
396400
if let categoryText = categoryText, !categoryText.isEmpty {
397-
filters.append(categoryText)
401+
let categories = categoryText
402+
.split(separator: ",")
403+
.map { $0.trimmingCharacters(in: .whitespaces) }
404+
filters += categories
398405
}
399406

400407
filterChipsView.updateChips(with: filters)
401408
}
402409
}
403-
404410
extension FilterBottomSheetView: UIScrollViewDelegate {
405411
func scrollViewDidScroll(_ scrollView: UIScrollView) {
406412
updateSelectedButtonPosition()

0 commit comments

Comments
 (0)