-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
801 additions
and
44 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
60 changes: 29 additions & 31 deletions
60
HousLab_iOS/HousLab_iOS.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
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 |
---|---|---|
@@ -1,34 +1,32 @@ | ||
{ | ||
"object": { | ||
"pins": [ | ||
{ | ||
"package": "Inject", | ||
"repositoryURL": "https://github.com/krzysztofzablocki/Inject.git", | ||
"state": { | ||
"branch": "main", | ||
"revision": "81d942634f359dc1d00a904e70328410aefd23fb", | ||
"version": null | ||
} | ||
}, | ||
{ | ||
"package": "SnapKit", | ||
"repositoryURL": "https://github.com/SnapKit/SnapKit.git", | ||
"state": { | ||
"branch": null, | ||
"revision": "f222cbdf325885926566172f6f5f06af95473158", | ||
"version": "5.6.0" | ||
} | ||
}, | ||
{ | ||
"package": "Then", | ||
"repositoryURL": "https://github.com/devxoul/Then.git", | ||
"state": { | ||
"branch": null, | ||
"revision": "d41ef523faef0f911369f79c0b96815d9dbb6d7a", | ||
"version": "3.0.0" | ||
} | ||
"pins" : [ | ||
{ | ||
"identity" : "inject", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/krzysztofzablocki/Inject.git", | ||
"state" : { | ||
"branch" : "main", | ||
"revision" : "81d942634f359dc1d00a904e70328410aefd23fb" | ||
} | ||
] | ||
}, | ||
"version": 1 | ||
}, | ||
{ | ||
"identity" : "snapkit", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/SnapKit/SnapKit.git", | ||
"state" : { | ||
"revision" : "f222cbdf325885926566172f6f5f06af95473158", | ||
"version" : "5.6.0" | ||
} | ||
}, | ||
{ | ||
"identity" : "then", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/devxoul/Then.git", | ||
"state" : { | ||
"revision" : "d41ef523faef0f911369f79c0b96815d9dbb6d7a", | ||
"version" : "3.0.0" | ||
} | ||
} | ||
], | ||
"version" : 2 | ||
} |
68 changes: 68 additions & 0 deletions
68
HousLab_iOS/HousLab_iOS/MinJae/Cells/EventsCollectionViewCell.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,68 @@ | ||
// | ||
// EventsCollectionViewCell.swift | ||
// HousLab_iOS | ||
// | ||
// Created by 김민재 on 2022/07/04. | ||
// | ||
|
||
import UIKit | ||
|
||
class EventsCollectionViewCell: UICollectionViewCell { | ||
|
||
let addIcon = UIImageView().then { | ||
$0.image = UIImage(systemName: "plus") | ||
$0.contentMode = .scaleAspectFit | ||
$0.tintColor = UIColor(hex: "FFD66D") | ||
$0.isHidden = true | ||
} | ||
|
||
let d_dayLabel = UILabel().then { | ||
$0.textColor = .white | ||
$0.font = .systemFont(ofSize: 22, weight: .semibold) | ||
} | ||
|
||
let backgroudImageView = UIImageView().then { | ||
$0.image = UIImage(systemName: "clock") | ||
$0.tintColor = .white.withAlphaComponent(0.3) | ||
$0.contentMode = .scaleAspectFit | ||
} | ||
|
||
override init(frame: CGRect) { | ||
super.init(frame: frame) | ||
render() | ||
configUI() | ||
} | ||
|
||
required init?(coder: NSCoder) { | ||
fatalError("init(coder:) has not been implemented") | ||
} | ||
|
||
private func render() { | ||
addSubview(backgroudImageView) | ||
backgroudImageView.addSubview(d_dayLabel) | ||
backgroudImageView.addSubview(addIcon) | ||
|
||
backgroudImageView.snp.makeConstraints { | ||
$0.top.bottom.leading.trailing.equalToSuperview() | ||
} | ||
|
||
d_dayLabel.snp.makeConstraints { | ||
$0.center.equalToSuperview() | ||
} | ||
|
||
addIcon.snp.makeConstraints { | ||
$0.center.equalToSuperview() | ||
} | ||
} | ||
|
||
private func configUI() { | ||
layer.cornerRadius = self.bounds.width / 4 | ||
} | ||
|
||
func setEventCellData(_ data: EventDataModel) { | ||
d_dayLabel.text = data.ddayString | ||
} | ||
|
||
|
||
|
||
} |
Oops, something went wrong.