Skip to content

Commit

Permalink
[Feat] TeamSparker#122 - 완료 리스트 코멘트 추가
Browse files Browse the repository at this point in the history
완료 리스트 코멘트 추가
  • Loading branch information
L-j-h-c committed Jan 19, 2022
1 parent 72e1c5b commit 43a1b5e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class DoneStorageCVC: UICollectionViewCell {
@IBOutlet weak var roomNameLabel: UILabel!
@IBOutlet weak var dateLabel: UILabel!
@IBOutlet weak var sparkCountLabel: UILabel!
@IBOutlet weak var commentLabel: UILabel!

override func awakeFromNib() {
super.awakeFromNib()
Expand All @@ -22,15 +23,18 @@ class DoneStorageCVC: UICollectionViewCell {
func setUI() {
gradationUIView.setGradient(color1: UIColor.clear, color2: UIColor.black)
thumbnailImage.contentMode = .scaleToFill
commentLabel.font = .p1TitleLight
}

func initCell(roomName: String,
thumbnail: String,
sparkCount: Int,
startDate: String,
endDate: String) {
endDate: String,
comment: String) {
sparkCountLabel.text = String(sparkCount)
roomNameLabel.text = roomName
commentLabel.text = comment

let startDate = startDate.split(separator: "-")
let endDate = endDate.split(separator: "-")
Expand Down
10 changes: 10 additions & 0 deletions Spark-iOS/Spark-iOS/Source/Cells/Storage/DoneStorageCVC.xib
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,12 @@
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="myboxTicketCompleteLine" translatesAutoresizingMaskIntoConstraints="NO" id="TPJ-hK-IAz">
<rect key="frame" x="0.0" y="0.0" width="327" height="520"/>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text=" " textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="eVD-9B-e8E">
<rect key="frame" x="20" y="254" width="287" height="0.0"/>
<fontDescription key="fontDescription" name="HelveticaNeue" family="Helvetica Neue" pointSize="0.0"/>
<color key="textColor" name="sparkWhite"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
Expand All @@ -109,13 +115,16 @@
<constraint firstItem="zjs-TB-eup" firstAttribute="centerX" secondItem="SMW-pe-rPY" secondAttribute="centerX" id="MIW-wD-hfS"/>
<constraint firstItem="zjs-TB-eup" firstAttribute="centerY" secondItem="SMW-pe-rPY" secondAttribute="centerY" id="NJw-BY-RX6"/>
<constraint firstAttribute="trailing" secondItem="SMW-pe-rPY" secondAttribute="trailing" id="NcV-L2-bt7"/>
<constraint firstItem="eVD-9B-e8E" firstAttribute="leading" secondItem="pDq-F4-Umy" secondAttribute="leading" constant="20" id="TVh-bF-QEw"/>
<constraint firstItem="AOj-nn-gQh" firstAttribute="top" secondItem="pDq-F4-Umy" secondAttribute="top" id="bBb-vm-QF8"/>
<constraint firstItem="zjs-TB-eup" firstAttribute="width" secondItem="SMW-pe-rPY" secondAttribute="width" id="cTi-10-dEB"/>
<constraint firstAttribute="bottom" secondItem="TPJ-hK-IAz" secondAttribute="bottom" id="cW6-6p-Niy"/>
<constraint firstAttribute="trailing" secondItem="eVD-9B-e8E" secondAttribute="trailing" constant="20" id="cdz-19-Baa"/>
<constraint firstItem="zjs-TB-eup" firstAttribute="height" secondItem="SMW-pe-rPY" secondAttribute="height" id="eLY-yt-YP2"/>
<constraint firstItem="SMW-pe-rPY" firstAttribute="top" secondItem="AOj-nn-gQh" secondAttribute="bottom" id="evF-me-37g"/>
<constraint firstItem="AOj-nn-gQh" firstAttribute="leading" secondItem="pDq-F4-Umy" secondAttribute="leading" id="hDb-V2-rSa"/>
<constraint firstAttribute="trailing" secondItem="AOj-nn-gQh" secondAttribute="trailing" id="jY2-QW-OaB"/>
<constraint firstItem="eVD-9B-e8E" firstAttribute="top" secondItem="Aj5-A6-BNH" secondAttribute="bottom" constant="20" id="vCu-3l-MOq"/>
</constraints>
</view>
</subviews>
Expand All @@ -128,6 +137,7 @@
<constraint firstAttribute="top" secondItem="pDq-F4-Umy" secondAttribute="top" id="yql-gB-r7H"/>
</constraints>
<connections>
<outlet property="commentLabel" destination="eVD-9B-e8E" id="4q1-Ir-KZG"/>
<outlet property="dateLabel" destination="Aj5-A6-BNH" id="4Cd-Gi-bcz"/>
<outlet property="gradationUIView" destination="zjs-TB-eup" id="Hg6-av-YQx"/>
<outlet property="roomNameLabel" destination="Yb6-ig-5g3" id="pV6-zw-pAx"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,8 @@ extension StorageVC: UICollectionViewDelegate, UICollectionViewDataSource {
thumbnail: completeRoomList[indexPath.row].thumbnail,
sparkCount: completeRoomList[indexPath.row].totalReceivedSpark,
startDate: completeRoomList[indexPath.row].startDate,
endDate: completeRoomList[indexPath.row].endDate)
endDate: completeRoomList[indexPath.row].endDate,
comment: completeRoomList[indexPath.row].comment ?? "")
cell.layer.cornerRadius = 4

return cell
Expand Down

0 comments on commit 43a1b5e

Please sign in to comment.