Skip to content

Commit

Permalink
stylingUI: 🎨search Result View 다듬기(#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lia316 committed Jun 3, 2021
1 parent 98f2b95 commit 7ff44a3
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 15 deletions.
Binary file not shown.
35 changes: 20 additions & 15 deletions iOS/Airbnb/Airbnb/ResultPage/View/AccommodationCell.xib
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,22 @@
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="2Ky-zj-TbH">
<rect key="frame" x="0.0" y="0.0" width="390" height="390"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="4yM-aL-clQ">
<rect key="frame" x="10" y="10" width="370" height="246.5"/>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="4yM-aL-clQ">
<rect key="frame" x="0.0" y="0.0" width="390" height="260"/>
<constraints>
<constraint firstAttribute="width" secondItem="4yM-aL-clQ" secondAttribute="height" multiplier="3:2" id="8Kd-6K-Az3"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
<integer key="value" value="8"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</imageView>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" alignment="top" spacing="7" translatesAutoresizingMaskIntoConstraints="NO" id="zU1-28-Gpe">
<rect key="frame" x="15" y="268.5" width="360" height="106.5"/>
<rect key="frame" x="3" y="272" width="387" height="103"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" spacing="9" translatesAutoresizingMaskIntoConstraints="NO" id="iUw-oW-0fx">
<rect key="frame" x="0.0" y="0.0" width="124" height="15"/>
<stackView opaque="NO" contentMode="scaleToFill" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="iUw-oW-0fx">
<rect key="frame" x="0.0" y="0.0" width="116" height="15"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="star.fill" catalog="system" translatesAutoresizingMaskIntoConstraints="NO" id="bXC-MG-Xg9">
<rect key="frame" x="0.0" y="-0.5" width="15" height="15"/>
Expand All @@ -41,13 +46,13 @@
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="4.80" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="UcP-iE-bJr">
<rect key="frame" x="24" y="0.0" width="26" height="15"/>
<rect key="frame" x="20" y="0.0" width="26" height="15"/>
<fontDescription key="fontDescription" type="system" pointSize="12"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="(후기 127개)" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="L2y-Zl-8ck">
<rect key="frame" x="59" y="0.0" width="65" height="15"/>
<rect key="frame" x="51" y="0.0" width="65" height="15"/>
<constraints>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="65" id="nZ1-ce-7K7"/>
</constraints>
Expand All @@ -58,19 +63,19 @@
</subviews>
</stackView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" text="Spacious and Comfortable cozy house" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="hmT-KK-Pcc">
<rect key="frame" x="0.0" y="22" width="337" height="32"/>
<rect key="frame" x="0.0" y="22" width="337" height="28.5"/>
<fontDescription key="fontDescription" type="system" pointSize="20"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="₩82,953 / 박" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Nal-BR-pHI">
<rect key="frame" x="0.0" y="61" width="98" height="20.5"/>
<rect key="frame" x="0.0" y="57.5" width="98" height="20.5"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="총액 ₩1,493,159" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="eIY-Yk-nFB">
<rect key="frame" x="0.0" y="88.5" width="109.5" height="18"/>
<rect key="frame" x="0.0" y="85" width="109.5" height="18"/>
<fontDescription key="fontDescription" type="system" pointSize="15"/>
<color key="textColor" systemColor="secondaryLabelColor"/>
<nil key="highlightedColor"/>
Expand All @@ -80,13 +85,13 @@
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="zU1-28-Gpe" secondAttribute="trailing" constant="15" id="BgG-wU-U0o"/>
<constraint firstAttribute="trailing" secondItem="zU1-28-Gpe" secondAttribute="trailing" id="BgG-wU-U0o"/>
<constraint firstItem="zU1-28-Gpe" firstAttribute="top" secondItem="4yM-aL-clQ" secondAttribute="bottom" constant="12" id="FTm-RI-kgJ"/>
<constraint firstItem="4yM-aL-clQ" firstAttribute="leading" secondItem="2Ky-zj-TbH" secondAttribute="leading" constant="10" id="G0n-og-pE0"/>
<constraint firstItem="zU1-28-Gpe" firstAttribute="leading" secondItem="2Ky-zj-TbH" secondAttribute="leading" constant="15" id="IQK-mI-IC9"/>
<constraint firstItem="4yM-aL-clQ" firstAttribute="leading" secondItem="2Ky-zj-TbH" secondAttribute="leading" id="G0n-og-pE0"/>
<constraint firstItem="zU1-28-Gpe" firstAttribute="leading" secondItem="2Ky-zj-TbH" secondAttribute="leading" constant="3" id="IQK-mI-IC9"/>
<constraint firstAttribute="bottom" secondItem="zU1-28-Gpe" secondAttribute="bottom" constant="15" id="QaY-2d-AqA"/>
<constraint firstItem="4yM-aL-clQ" firstAttribute="top" secondItem="2Ky-zj-TbH" secondAttribute="top" constant="10" id="gXK-Kd-qPe"/>
<constraint firstAttribute="trailing" secondItem="4yM-aL-clQ" secondAttribute="trailing" constant="10" id="wPc-JZ-UkD"/>
<constraint firstItem="4yM-aL-clQ" firstAttribute="top" secondItem="2Ky-zj-TbH" secondAttribute="top" id="gXK-Kd-qPe"/>
<constraint firstAttribute="trailing" secondItem="4yM-aL-clQ" secondAttribute="trailing" id="wPc-JZ-UkD"/>
</constraints>
</view>
</subviews>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class RoomsViewController: UIViewController {
roomsUseCase.requestPirce(condition: conditionViewModel.convertCodable())
bind()

configureNavigation()
configureHierarchy()
configureDataSource()
}
Expand Down Expand Up @@ -157,3 +158,14 @@ extension RoomsViewController: UICollectionViewDelegate {

}


extension RoomsViewController {

func configureNavigation() {
self.navigationItem.title = "숙소 찾기"
let backButton = UIBarButtonItem()
backButton.title = "Back"
self.navigationController?.navigationBar.topItem?.backBarButtonItem = backButton
}

}

0 comments on commit 7ff44a3

Please sign in to comment.