-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from mash-up-kr/feature/ns/searchTab_categoryR…
…esult 검색탭 카테고리 검색 결과 UI
- Loading branch information
Showing
7 changed files
with
342 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
HikingClub/Feature/Search/Cell/CategoryTabCollectionViewCell.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// | ||
// CategoryTabCollectionViewCell.swift | ||
// HikingClub | ||
// | ||
// Created by 남수김 on 2021/11/03. | ||
// | ||
|
||
import UIKit | ||
|
||
final class CategoryTabCollectionViewCell: UICollectionViewCell { | ||
|
||
private let tabButton: NDTabButton = NDTabButton() | ||
override var isSelected: Bool { | ||
didSet { | ||
tabButton.setSelected(isSelected) | ||
} | ||
} | ||
|
||
override func awakeFromNib() { | ||
super.awakeFromNib() | ||
addSubview(tabButton) | ||
tabButton.snp.makeConstraints { | ||
$0.leading.top.trailing.bottom.equalToSuperview() | ||
} | ||
tabButton.setEnabledTouch(false) | ||
} | ||
|
||
override func prepareForReuse() { | ||
super.prepareForReuse() | ||
tabButton.setTitle("") | ||
} | ||
|
||
func configure(with model: String) { | ||
tabButton.setTitle(model) | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
HikingClub/Feature/Search/Cell/CategoryTabCollectionViewCell.xib
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="19162" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> | ||
<device id="retina6_1" orientation="portrait" appearance="light"/> | ||
<dependencies> | ||
<deployment identifier="iOS"/> | ||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="19144"/> | ||
<capability name="Safe area layout guides" minToolsVersion="9.0"/> | ||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> | ||
</dependencies> | ||
<objects> | ||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/> | ||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> | ||
<collectionViewCell opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" reuseIdentifier="CategoryTabCollectionViewCell" id="gTV-IL-0wX" customClass="CategoryTabCollectionViewCell" customModule="HikingClub" customModuleProvider="target"> | ||
<rect key="frame" x="0.0" y="0.0" width="210" height="112"/> | ||
<autoresizingMask key="autoresizingMask"/> | ||
<view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center"> | ||
<rect key="frame" x="0.0" y="0.0" width="210" height="112"/> | ||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> | ||
</view> | ||
<viewLayoutGuide key="safeArea" id="ZTg-uK-7eu"/> | ||
<size key="customSize" width="210" height="112"/> | ||
<point key="canvasLocation" x="21.739130434782609" y="99.107142857142847"/> | ||
</collectionViewCell> | ||
</objects> | ||
</document> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.