Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] 내 모임 리스트 UI 구현 #165

Merged
merged 11 commits into from
Jul 12, 2024
Merged

[feat] 내 모임 리스트 UI 구현 #165

merged 11 commits into from
Jul 12, 2024

Conversation

mmaybei
Copy link
Member

@mmaybei mmaybei commented Jul 12, 2024

🔗 연결된 이슈

📄 작업 내용

  • 내 모임 리스트 뷰를 구현했습니다.
  • 테이블뷰와 테이블뷰의 헤더로 구현했습니다.
  • 이후에 모임 추가 버튼 액션 연결할 예정입니다.
구현 내용 iPhone 13 mini
GIF
PNG

@mmaybei mmaybei added ✨ feat 기능 구현시 사용 ❤️ SuYeon 무한 잼얘 지옥에 빠지고 싶다면 labels Jul 12, 2024
@mmaybei mmaybei linked an issue Jul 12, 2024 that may be closed by this pull request
2 tasks
$0.setText("모임 추가하기", style: .body05, color: .green3)
}

private let addIcon = UIImageView().then {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

네이밍의 끝은 어떤 프로퍼티인지로 하기로 해서 addIconImageView면 더 좋지 않을까요 ??

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

icon 정도는 이렇게 해도 될 거라고 생각하긴 했는데 흠// 반영하겠습니다

rootView.tableView.dataSource = self
}

private func updateMeeingList() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Meeing으로 ㅇ오타낫어요!! ㅠㅠ

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이런~ 감사합니다 역시 매서운 눈!

@mmaybei mmaybei self-assigned this Jul 12, 2024
Copy link
Member

@hooni0918 hooni0918 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셧습니다!

@@ -18,7 +18,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
) {
guard let windowScene = (scene as? UIWindowScene) else { return }
self.window = UIWindow(windowScene: windowScene)
self.window?.rootViewController = NicknameViewController()
self.window?.rootViewController = MainTabBarController()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

앗 바꾼다고 하고 암생각없이 올려버렷네요 미안합니다~

addButton.snp.makeConstraints {
$0.top.equalTo(infoLabel.snp.bottom).offset(16)
$0.leading.trailing.equalToSuperview()
$0.height.equalTo(48)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screen👀

lineView.snp.makeConstraints {
$0.leading.trailing.equalToSuperview()
$0.bottom.equalTo(navigationController?.navigationBar.snp.bottom ?? 0)
$0.height.equalTo(1)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screen 👀

import Then

final class MeetingListViewModel {
var meetingListData = ObservablePattern<[MeetingDummyModel]>(MeetingDummyModel.dummy())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오~! 옵저버블 패턴까지!

빈 배열에서 옵저버 패턴을 통해 임시 더미데이터를 받아올 수 있도록
Copy link
Contributor

@JinUng41 JinUng41 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다~👍

Comment on lines 37 to 39
self.do {
$0.backgroundColor = .clear
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

backgroundColor = .clear 로 해도 좋을 것 같아요.

Comment on lines 17 to 19

var itemRow: Int?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이것은 불필요한 걸까요?
필요하다면, 왜 존재해야 한 것일까요?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아까 함수 수정하면서 삭제를 안 했네용 .. ㅎㅎ 머쓱

Comment on lines 20 to 21
private let cellView = UIView().then {
$0.backgroundColor = .white
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

backgroundColor를 이용하여 생성할 수 있습니다.

Comment on lines 47 to 48
$0.separatorStyle = .none
header.frame = CGRect(x: 0, y: 0, width: UIScreen.main.bounds.width, height: 170)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

header를 frame으로 설정한 이유가 궁금합니다.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

width를 leading.trailing.equalToSuperview()로 잡으니 오류가 나서 UIScreen.main.bounds.width로 width를 잡아주었는데요.. 현재는 setupAutoLayout() 함수로 분리해둔 상태입니다.

header.snp.makeConstraints {
            $0.top.equalToSuperview()
            $0.width.equalTo(UIScreen.main.bounds.width)
            $0.height.equalTo(Screen.height(170))
        }

// MARK: - Property

private let rootView = MeetingListView()
private let viewModel = MeetingListViewModel()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

viewModel을 생성자에서 DI하지 않은 이유가 궁금합니다.

Comment on lines 30 to 33
view.backgroundColor = .gray0
setupView()
register()
setupDelegate()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

setupView, setupDelegateviewDidLoad에서 부르지 않아도 됩니다.

Comment on lines 87 to 89
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
return 88
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

여기는 Screen 코드를 써도 좋을 것 같습니다.

Copy link
Contributor

@JinUng41 JinUng41 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다~

@mmaybei mmaybei merged commit bcdd035 into suyeon Jul 12, 2024
@mmaybei mmaybei deleted the feat/#162-meetingList branch July 12, 2024 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ feat 기능 구현시 사용 ❤️ SuYeon 무한 잼얘 지옥에 빠지고 싶다면
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feat] 내 모임 뷰 작업
4 participants