Skip to content

Commit

Permalink
Feat: disable color-changing when user selects cells #90
Browse files Browse the repository at this point in the history
  • Loading branch information
jinios committed Sep 3, 2019
1 parent 3924293 commit fb52a76
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
11 changes: 0 additions & 11 deletions MartHoliday/MartHoliday/DetailHeaderView.xib
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ETb-7L-en4" userLabel="containerView">
<rect key="frame" x="0.0" y="0.0" width="413" height="80"/>
<subviews>
<view alpha="0.5" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="HJF-Qa-m2L" userLabel="selectionView">
<rect key="frame" x="0.0" y="0.0" width="413" height="80"/>
<color key="backgroundColor" name="mh-midgray"/>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="wU0-pw-D97">
<rect key="frame" x="30" y="43" width="49" height="21"/>
<fontDescription key="fontDescription" name="NanumSquareRoundOTFB" family="NanumSquareRoundOTF" pointSize="19"/>
Expand Down Expand Up @@ -65,12 +61,9 @@
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="wU0-pw-D97" firstAttribute="top" secondItem="bD7-fa-bHO" secondAttribute="bottom" constant="15" id="1SB-OQ-3Pr"/>
<constraint firstAttribute="bottom" secondItem="HJF-Qa-m2L" secondAttribute="bottom" id="B12-Rf-hI8"/>
<constraint firstItem="wU0-pw-D97" firstAttribute="leading" secondItem="ETb-7L-en4" secondAttribute="leading" constant="30" id="Cci-Pd-Jq9"/>
<constraint firstAttribute="trailing" relation="lessThanOrEqual" secondItem="wU0-pw-D97" secondAttribute="trailing" constant="334" id="G5P-gE-6aZ"/>
<constraint firstAttribute="trailing" secondItem="HJF-Qa-m2L" secondAttribute="trailing" id="HIo-aD-DCI"/>
<constraint firstItem="Y5S-cA-Vza" firstAttribute="centerX" secondItem="ETb-7L-en4" secondAttribute="centerX" id="IvH-KX-Bua"/>
<constraint firstItem="HJF-Qa-m2L" firstAttribute="leading" secondItem="ETb-7L-en4" secondAttribute="leading" id="K85-Jf-gjP"/>
<constraint firstItem="qde-rR-3lz" firstAttribute="centerY" secondItem="ETb-7L-en4" secondAttribute="centerY" id="M3x-ZR-bI0"/>
<constraint firstAttribute="bottom" secondItem="qde-rR-3lz" secondAttribute="bottom" id="QDP-nR-Bxb"/>
<constraint firstItem="bD7-fa-bHO" firstAttribute="leading" secondItem="ETb-7L-en4" secondAttribute="leading" constant="30" id="TH1-wI-WeO"/>
Expand All @@ -79,14 +72,11 @@
<constraint firstItem="bD7-fa-bHO" firstAttribute="top" secondItem="ETb-7L-en4" secondAttribute="top" constant="10" id="g5t-Vn-Fut"/>
<constraint firstItem="qde-rR-3lz" firstAttribute="height" secondItem="ETb-7L-en4" secondAttribute="height" id="iyF-Ix-rZV"/>
<constraint firstItem="Y5S-cA-Vza" firstAttribute="width" secondItem="ETb-7L-en4" secondAttribute="width" multiplier="0.9" id="nNv-jE-xVe"/>
<constraint firstItem="HJF-Qa-m2L" firstAttribute="top" secondItem="ETb-7L-en4" secondAttribute="top" id="pUy-xC-usl"/>
<constraint firstAttribute="bottom" secondItem="Y5S-cA-Vza" secondAttribute="bottom" id="rZ8-pj-QiY"/>
</constraints>
</view>
</subviews>
<constraints>
<constraint firstItem="HJF-Qa-m2L" firstAttribute="height" secondItem="vUN-kp-3ea" secondAttribute="height" id="25R-Sv-kzn"/>
<constraint firstItem="HJF-Qa-m2L" firstAttribute="width" secondItem="vUN-kp-3ea" secondAttribute="width" id="2HP-jF-Zyg"/>
<constraint firstItem="vUN-kp-3ea" firstAttribute="bottom" secondItem="ETb-7L-en4" secondAttribute="bottom" id="7kf-wb-iWg"/>
<constraint firstItem="ETb-7L-en4" firstAttribute="leading" secondItem="vUN-kp-3ea" secondAttribute="leading" id="TRS-tN-Zgh"/>
<constraint firstItem="vUN-kp-3ea" firstAttribute="trailing" secondItem="ETb-7L-en4" secondAttribute="trailing" id="XFm-N0-etM"/>
Expand All @@ -98,7 +88,6 @@
<outlet property="button" destination="qde-rR-3lz" id="HZy-Hu-Um2"/>
<outlet property="containerView" destination="ETb-7L-en4" id="w6K-Wb-A3J"/>
<outlet property="dateLabel" destination="wU0-pw-D97" id="SFA-WK-4mL"/>
<outlet property="selectionDetectView" destination="HJF-Qa-m2L" id="kLt-cx-G30"/>
</connections>
<point key="canvasLocation" x="52" y="-230.28485757121442"/>
</view>
Expand Down
2 changes: 0 additions & 2 deletions MartHoliday/MartHoliday/View/HolidayHeaderView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import UIKit
class HolidayHeaderView: UITableViewHeaderFooterView {

@IBOutlet weak var containerView: UIView!
@IBOutlet weak var selectionDetectView: UIView!
@IBOutlet weak var button: UIButton!
@IBOutlet weak var dateLabel: UILabel!
var delegate: HeaderDelegate?
Expand All @@ -27,7 +26,6 @@ class HolidayHeaderView: UITableViewHeaderFooterView {

func setExpand(state: Bool) {
self.button.isSelected = state
self.selectionDetectView.isHidden = !state
}

}
1 change: 0 additions & 1 deletion MartHoliday/MartHoliday/View/MainTableViewHeader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ class MainTableViewHeader: UITableViewHeaderFooterView {
}

@IBAction func headerButtonTapped(_ sender: Any) {
self.containerView.backgroundColor = UIColor.appColor(color: .mint)
delegate?.selectHeader(index: sectionIndex!)
}

Expand Down

0 comments on commit fb52a76

Please sign in to comment.