-
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.
Browse files
Browse the repository at this point in the history
[feat] 내 모임 리스트 UI 구현
- Loading branch information
Showing
14 changed files
with
412 additions
and
32 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
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
21 changes: 21 additions & 0 deletions
21
KkuMulKum/Resource/Assets.xcassets/Icon/ic_groupPlus.imageset/Contents.json
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,21 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "ic_grpplus.svg", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
KkuMulKum/Resource/Assets.xcassets/Icon/ic_groupPlus.imageset/ic_grpplus.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 0 additions & 12 deletions
12
KkuMulKum/Resource/Assets.xcassets/Icon/icon_groupPlus.imageset/Contents.json
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
KkuMulKum/Resource/Assets.xcassets/Icon/icon_groupPlus.imageset/groupPlus.svg
This file was deleted.
Oops, something went wrong.
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
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
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
69 changes: 69 additions & 0 deletions
69
KkuMulKum/Source/MeetingList/Cell/MeetingTableViewCell.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,69 @@ | ||
// | ||
// GroupViewCell.swift | ||
// KkuMulKum | ||
// | ||
// Created by 예삐 on 7/12/24. | ||
// | ||
|
||
import UIKit | ||
|
||
import SnapKit | ||
import Then | ||
|
||
final class MeetingTableViewCell: BaseTableViewCell { | ||
|
||
|
||
// MARK: - Property | ||
|
||
private let cellView = UIView(backgroundColor: .white).then { | ||
$0.layer.cornerRadius = 8 | ||
} | ||
|
||
private let nameLabel = UILabel() | ||
|
||
private let countLabel = UILabel() | ||
|
||
private let rightIcon = UIImageView().then { | ||
$0.image = .iconRight | ||
} | ||
|
||
|
||
// MARK: - UI Setting | ||
|
||
override func setupView() { | ||
self.backgroundColor = .clear | ||
addSubviews(cellView, nameLabel, countLabel, rightIcon) | ||
} | ||
|
||
override func setupAutoLayout() { | ||
cellView.snp.makeConstraints { | ||
$0.top.leading.trailing.equalToSuperview() | ||
$0.height.equalTo(76) | ||
} | ||
|
||
nameLabel.snp.makeConstraints { | ||
$0.top.equalToSuperview().offset(16) | ||
$0.leading.equalToSuperview().offset(20) | ||
} | ||
|
||
countLabel.snp.makeConstraints { | ||
$0.bottom.equalTo(cellView.snp.bottom).offset(-16) | ||
$0.leading.equalToSuperview().offset(20) | ||
} | ||
|
||
rightIcon.snp.makeConstraints { | ||
$0.centerY.equalTo(cellView.snp.centerY) | ||
$0.trailing.equalToSuperview().offset(-16) | ||
} | ||
} | ||
} | ||
|
||
|
||
// MARK: - Data Bind | ||
|
||
extension MeetingTableViewCell { | ||
func dataBind(_ contentData: MeetingDummyModel) { | ||
nameLabel.setText(contentData.name, style: .body03, color: .gray8) | ||
countLabel.setText("\(contentData.count)명 참여 중", style: .caption02, color: .gray5) | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
KkuMulKum/Source/MeetingList/Model/MeetingDummyModel.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,29 @@ | ||
// | ||
// MeetingListModel.swift | ||
// KkuMulKum | ||
// | ||
// Created by 예삐 on 7/12/24. | ||
// | ||
|
||
import UIKit | ||
|
||
struct MeetingDummyModel { | ||
let name: String | ||
let count: Int | ||
} | ||
|
||
extension MeetingDummyModel { | ||
static func dummy() -> [MeetingDummyModel] { | ||
return [ | ||
MeetingDummyModel(name: "꾸물이들", count: 14), | ||
MeetingDummyModel(name: "꾸물이들", count: 14), | ||
MeetingDummyModel(name: "꾸물이들", count: 14), | ||
MeetingDummyModel(name: "꾸물이들", count: 14), | ||
MeetingDummyModel(name: "꾸물이들", count: 14), | ||
MeetingDummyModel(name: "꾸물이들", count: 14), | ||
MeetingDummyModel(name: "꾸물이들", count: 14), | ||
MeetingDummyModel(name: "꾸물이들", count: 14), | ||
MeetingDummyModel(name: "꾸물이들", count: 14) | ||
] | ||
} | ||
} |
Oops, something went wrong.