-
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.
- Loading branch information
Showing
13 changed files
with
342 additions
and
59 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 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
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) | ||
] | ||
} | ||
} |
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,12 @@ | ||
// | ||
// MeetingListHeader.swift | ||
// KkuMulKum | ||
// | ||
// Created by 예삐 on 7/12/24. | ||
// | ||
|
||
import UIKit | ||
|
||
final class MeetingListHeader: BaseView { | ||
|
||
} |
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,84 @@ | ||
// | ||
// GroupListView.swift | ||
// KkuMulKum | ||
// | ||
// Created by 예삐 on 7/12/24. | ||
// | ||
|
||
import UIKit | ||
|
||
import SnapKit | ||
import Then | ||
|
||
final class MeetingListView: BaseView { | ||
|
||
|
||
// MARK: - Property | ||
|
||
private let header = UIView() | ||
|
||
private let infoLabel = UILabel().then { | ||
$0.setText("꾸물리안이 가입한 모임은\n총 3개예요!", style: .head01, color: .gray8) | ||
} | ||
|
||
private let addButton = UIButton().then { | ||
$0.backgroundColor = .green2 | ||
$0.layer.cornerRadius = 8 | ||
} | ||
|
||
private let addInfoView = UIStackView().then { | ||
$0.axis = .horizontal | ||
$0.spacing = 8 | ||
$0.alignment = .fill | ||
$0.distribution = .fill | ||
} | ||
|
||
private let addInfoLabel = UILabel().then { | ||
$0.setText("모임 추가하기", style: .body05, color: .green3) | ||
} | ||
|
||
private let addIcon = UIImageView().then { | ||
$0.image = .icGroupPlus | ||
} | ||
|
||
lazy var tableView = UITableView(frame: .zero, style: .plain).then { | ||
$0.backgroundColor = .clear | ||
$0.showsVerticalScrollIndicator = false | ||
$0.separatorStyle = .none | ||
header.frame = CGRect(x: 0, y: 0, width: UIScreen.main.bounds.width, height: 170) | ||
$0.tableHeaderView = header | ||
} | ||
|
||
|
||
// MARK: - UI Setting | ||
|
||
override func setupView() { | ||
self.backgroundColor = .gray0 | ||
addSubview(tableView) | ||
header.addSubviews(infoLabel, addButton, addInfoView) | ||
addInfoView.addArrangedSubviews(addIcon, addInfoLabel) | ||
} | ||
|
||
override func setupAutoLayout() { | ||
infoLabel.snp.makeConstraints { | ||
$0.top.equalToSuperview().offset(24) | ||
$0.leading.equalToSuperview() | ||
} | ||
|
||
addButton.snp.makeConstraints { | ||
$0.top.equalTo(infoLabel.snp.bottom).offset(16) | ||
$0.leading.trailing.equalToSuperview() | ||
$0.height.equalTo(48) | ||
} | ||
|
||
addInfoView.snp.makeConstraints { | ||
$0.centerY.equalTo(addButton.snp.centerY) | ||
$0.centerX.equalTo(addButton.snp.centerX) | ||
} | ||
|
||
tableView.snp.makeConstraints { | ||
$0.leading.trailing.equalToSuperview().inset(20) | ||
$0.top.bottom.equalToSuperview() | ||
} | ||
} | ||
} |
Oops, something went wrong.