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

알립니다 구현 #46

Merged
merged 18 commits into from
Nov 28, 2024
Merged

알립니다 구현 #46

merged 18 commits into from
Nov 28, 2024

Conversation

0gonge
Copy link
Collaborator

@0gonge 0gonge commented Nov 27, 2024

🎫 What is the PR?

알립니다 TicketDetailView의 전반적인 작업을 완료했습니다!

🎫 Changes

  • 알립니다 셀 Expanded 구현
  • 펼쳐졌을 때 border 점선 구현
  • 예매하기 버튼 구현
  • Footer TableView에 구현
  • ExpandedView 구현

🎫 Thoughts

Expanded를 어떻게 하면 구현할 수 있을 지 공부해볼 수 있는 좋은 시간이었습니다.
TableView에 대해서 한 층 더 깊이 알아볼 수 있었던 시간..
Expanded에 더불어 재사용 셀들과 다른 하나의 셀의 화살표 동작, 펼쳐졌을 때 섹션에 점선 뷰가 나타나야 함... 등등 까다로운 부분이 많았습니다.
이를 구현하기 위해서는 테이블 뷰를 구현하기 위해 써주는 각각의 메서드들이 어떤 역할을 하는지 잘 알아야 했고, 그에 따라 조건을 걸어주어 맞는 동작을 하게 하는 것이 무엇보다도 중요했습니다. 그리고 각각의 화면에 그려지는 View, layer의 차이도 조금 더 명확히 알 수 있었던 시간이었습니다.
그러니, 저의 코드에서 TableView에서 조건을 걸어준 부분을 조금 유심하게 봐 주셨으면 좋겠습니다.
그리고 Footer를 TableViewHeaderFooterView로 붙여주기 위한 snp도 공부할 수 있었습니다.

🎫 Screenshot

Simulator.Screen.Recording.-.iPhone.16.Pro.-.2024-11-27.at.09.47.43.mp4

🎫 To Reviewers

TableView 구현 조건 위주로 봐주세요!

🎫 Related Issues

진짜 까다로웠다... 드디어 하나 끝냈따...

@0gonge 0gonge added 🎫 feat 새로운 기능 추가 🟢 여경's code 여경 팀장님 코드~ labels Nov 27, 2024
@0gonge 0gonge self-assigned this Nov 27, 2024
@0gonge 0gonge linked an issue Nov 27, 2024 that may be closed by this pull request
3 tasks
Copy link
Collaborator

@lalaurrel lalaurrel left a comment

Choose a reason for hiding this comment

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

대박대박 !!!!!!! 고생하셨습니다 여경팀장님이 나라다.

@@ -22,7 +22,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
window = UIWindow(windowScene: windowScene)

let rootController = TabBarNavigationController(
rootViewController: TabBarController()
rootViewController: TicketDetailController()
Copy link
Collaborator

Choose a reason for hiding this comment

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

혹쉬 이거 탭바로 다시 안바꿔두 돼?! 🤓

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

다시 바꿔야 해 ㅋㅋㅋ 다음 타자가 바꿔줄거라고 믿고있어...

Copy link
Collaborator

@SungMinCho-Kor SungMinCho-Kor left a comment

Choose a reason for hiding this comment

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

어려운 부분을 잘 해내셨네요!! 화이팅화이팅

@@ -1,3 +1,322 @@
////
Copy link
Collaborator

Choose a reason for hiding this comment

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

주석은 삭제해도 될 것 같아요!

Copy link
Collaborator 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 26
static var mockData: [InfoConfiguration] = [
.init(title: "알립니다", details: "※ 본 공연은 네이버 쿠폰이 적용되지 않습니다.\n※ 본 공연은 YES24공연에서 진행하는 할인쿠폰이벤트 대상에서 제외됩니다.\n※ 매수제한: 공연별 1인 4매", isExpanded: false),
.init(title: "상세정보", details: ""),
.init(title: "할인정보", details: ""),
.init(title: "기대평", details: ""),
.init(title: "공연 이미지(1)", details: "")
]
Copy link
Collaborator

Choose a reason for hiding this comment

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

여기도 Control m 해주시면 좋을 것 같아요!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

반영완료했습니다 감사합니다!

import SnapKit
import Then

class DetailTableViewCell: UITableViewCell {
Copy link
Collaborator

@SungMinCho-Kor SungMinCho-Kor Nov 28, 2024

Choose a reason for hiding this comment

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

final 붙여주세요!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

앗 그걸 놓쳤네요 감사합니다!

fatalError("init(coder:) has not been implemented")
}

static let identifier: String = "DetailTableViewCell"
Copy link
Collaborator

Choose a reason for hiding this comment

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

UITableViewCell의 identifier도 UICollectionViewCell처럼 extension으로 구현하면 어떨까요?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

반영완료 했습니다!

Comment on lines 13 to 14
final class ExpandedView: UIView {
private let firstLabel = UILabel().then {
Copy link
Collaborator

Choose a reason for hiding this comment

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

한 칸 띄워주세요~

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

넹~

Comment on lines 88 to 90
[ ticketDetailView,
buttonBackgroundView]
.forEach(view.addSubview)
Copy link
Collaborator

Choose a reason for hiding this comment

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

줄내림과 띄어쓰기 컨벤션 확인해주세요!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

확인했습니다!

Copy link
Collaborator

@SungMinCho-Kor SungMinCho-Kor left a comment

Choose a reason for hiding this comment

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

드디어! 성공!

@0gonge 0gonge merged commit 71e3e91 into develop Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎫 feat 새로운 기능 추가 🟢 여경's code 여경 팀장님 코드~
Projects
None yet
Development

Successfully merging this pull request may close these issues.

알립니다 구현
3 participants