Skip to content

Conversation

ayoung1201
Copy link

@ayoung1201 ayoung1201 commented Nov 23, 2023

💡 Description

메모를 작성하고, 다시 들어가서 수정한 내용이 뷰컨트롤러에 업데이트가 되지 않아요,,ㅜㅜㅜ

📝 Progress

  • todo !

@ayoung1201 ayoung1201 self-assigned this Nov 23, 2023
@ayoung1201 ayoung1201 added the 🌷 마요 마요's work label Nov 23, 2023
@ayoung1201 ayoung1201 requested a review from iiuoon November 23, 2023 08:17
Copy link
Member

@iiuoon iiuoon 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 104 to 105
CC7D36DB2B04DA780069F109 /* SnapKit-Dynamic */,
);
Copy link
Member

Choose a reason for hiding this comment

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

스냅킷 추가하실 때 SnapKit-Dynamic말고 SnapKit 하나만 추가해주세요!

Comment on lines +71 to +72
make.leading.equalTo(view.safeAreaLayoutGuide.snp.leading).offset(20)
make.trailing.equalTo(view.safeAreaLayoutGuide.snp.trailing).offset(-20)
Copy link
Member

Choose a reason for hiding this comment

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

make.leading.trailing.equalTo(view.safeAreaLayoutGuide.snp.leading).inset(20) 한 줄로 가능합니다

Comment on lines 95 to 102
@objc func backButtonTapped() {
guard let updatedMemo = createUpdatedMemo() else {
return
}

detailDelegate?.didUpdateDetailMemo(updatedMemo, atIndex: index!)
self.navigationController?.popViewController(animated: true)
}
Copy link
Member

Choose a reason for hiding this comment

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

이 함수를 만들고 호출 안 해주고 있어서 데이터 전달에 문제가 있는 것 같아요

delegate는 MemoEditDelegate 사용하도록 수정해주세요!

Comment on lines 8 to 10
protocol MemoDetailDelegate: AnyObject {
func didUpdateDetailMemo(_ memo: Memo, atIndex index: Int)
}
Copy link
Member

Choose a reason for hiding this comment

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

backButtonTapped 함수에서 값을 이미 넘겨주기 때문에 이 delegate는 필요없을 것 같아요!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌷 마요 마요's work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants