-
Notifications
You must be signed in to change notification settings - Fork 2
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] 마이페이지 > 활동중인 모임 #352
Conversation
- 최신순 2개만 - feed형일때 system메시지 제외
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고했어요 수빈
recruitButton | ||
.rx.tap | ||
.asDriver() | ||
.drive(with: self) { owner, _ in | ||
let vc = DetailRecruitmentViewController(plubbingID: owner.viewModel.plubbingID) | ||
let vc = DetailRecruitmentViewController(plubbingID: owner.viewModel.plumbingID) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let vc = DetailRecruitmentViewController(plubbingID: owner.viewModel.plumbingID) | |
let vc = DetailRecruitmentViewController(plubbingID: owner.viewModel.plubbingID) |
오타 있는거같아요 !!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수정했습니다~!
@@ -52,6 +80,19 @@ final class ActiveMeetingViewModel { | |||
) | |||
} | |||
|
|||
private func handleMyTodoInfo(todoInfo: TodoInfo) { | |||
todoList = todoInfo.todoContent | |||
.prefix(2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prefix는 어떤 연산자인가요 ??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
string에서 사용하면 지정된 개수만큼 앞에서부터 잘라주고
배열에서 사용하면 처음부터 지정된 개수만큼의 요소를 반환해줘요!
기획상으로 최대 2개의 todo, feed만 보여줘야해서 저렇게 사용했습니다~!
|
||
override func layoutSubviews() { | ||
super.layoutSubviews() | ||
contentView.frame = contentView.frame.inset(by: UIEdgeInsets(top: 4, left: 16, bottom: 4, right: 16)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이 부분은 왜 layoutSubviews안에 정의하신건가요 ??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
음.. 그러네요, contentView의 inset을 설정하기보다, wholeStackView
의 constraint로 inset을 설정하면 좋을 것 같아요.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cell의 contentView에 radius가 잡혀있어서 inset을 주려면 또다른 뷰로 감싸줘야해서 저렇게 구현하긴 했는데
수정하겠습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
코드 구현하시느라 고생 많으셨습니다. :)
|
||
struct FeedInfo: Codable { | ||
let totalElements: Int | ||
let last: Bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isLast로 변경하는 건 어때요? 저희 대부분의 모델에서는 isLast
로 표기하고 있어요!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수정했습니다~!
@@ -10,33 +10,61 @@ import Foundation | |||
import RxSwift | |||
import RxCocoa | |||
|
|||
protocol ActiveMeetingViewModelType { | |||
// MARK: Property | |||
var plumbingID: Int { get } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기도 오타 있네용
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수정했습니다~!
feedList = feedInfo.feedList | ||
.filter { $0.viewType != .system } | ||
.prefix(2) | ||
.map { $0 } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기서 .map { $0 }
은 스킵해도 될 거 같아요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이거 스킵하면 에러가 나더라구요!
|
||
override func layoutSubviews() { | ||
super.layoutSubviews() | ||
contentView.frame = contentView.frame.inset(by: UIEdgeInsets(top: 4, left: 16, bottom: 4, right: 16)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
음.. 그러네요, contentView의 inset을 설정하기보다, wholeStackView
의 constraint로 inset을 설정하면 좋을 것 같아요.
📌 PR 요약
마이페이지 > 활동중인 모임 기능을 구현했습니다.
🌱 작업한 내용
🌱 PR 포인트
📸 스크린샷
RPReplay_Final1683436577.mov
📮 관련 이슈