Skip to content

Conversation

@00yhsp
Copy link

@00yhsp 00yhsp commented Nov 23, 2023

📌 관련 이슈

#17

✨ 이슈 내용

메모장

📸 스크린샷(선택)

image
image
image

📚 레퍼런스 (또는 새로 알게 된 내용) 혹은 궁금한 사항들

@00yhsp 00yhsp requested a review from iiuoon November 23, 2023 08:42
@00yhsp 00yhsp added the 🌳 숲 숲's work label Nov 23, 2023
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.

수고하셨습니다😊 코드리뷰 확인해주세요!!

memoTableView.dataSource = self
memoTableView.delegate = self
setNavigationBar()

Copy link
Member

Choose a reason for hiding this comment

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

view.backgroundColor = .white 사용해주세요!

Comment on lines +27 to +28
var titleArray: [String] = []
var contentArray: [String] = []
Copy link
Member

Choose a reason for hiding this comment

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

Memo 구조체를 만들어서 한꺼번에 관리하는 걸 추천드려요!

struct Memo {
var title: String
var content: String
}

이런식으로요!

Comment on lines +20 to +23
if (titleText.textColor == .lightGray || contentText.textColor == .gray || titleText.text.isEmpty || contentText.text.isEmpty) {
print("잘못된 제목 또는 내용입니다.")
return
}
Copy link
Member

Choose a reason for hiding this comment

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

내용이 입력되지 않았을 때의 분기처리 하신 거 너무 좋습니다!!
그런데 로그만 띄우면 사용자는 알 수 없으니까

  1. 내용이 입력되지 않았을 때 '작성하기' 버튼 비활성화 하고 입력됐을 때 활성화 시키기
  2. 내용이 입력되지 않았을 때 '작성하기' 버튼 클릭하면 '제목 or 내용을 입력하세요' alert 띄우기
    와 같은 코드를 구현하면 더 좋을 것 같아요!

Comment on lines +71 to +72
make.leading.equalToSuperview().inset(50)
make.trailing.equalToSuperview().inset(50)
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.equalToSuperview().inset(50)
한 줄로 작성할 수 있습니다!

Comment on lines +80 to +81
if isModified == true {
_ = self.navigationController?.popViewController(animated: false)
Copy link
Member

Choose a reason for hiding this comment

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

수정이 됐을 때 바로 홈으로 이동하는 것보다는
이전 뷰인 메모 상세 뷰로 이동하는 게 더 자연스러울 것 같아요!

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.

3 participants