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

[Feature]: 메모 작성/수정 화면에서 기능을 구현합니다. #18

Closed
6 tasks done
heydoy opened this issue Sep 3, 2022 · 1 comment
Closed
6 tasks done
Assignees
Labels

Comments

@heydoy
Copy link
Owner

heydoy commented Sep 3, 2022

🛠 이슈

메모 작성/수정 화면에서 기능을 구현합니다.

📝 할 일

  • 어떤 텍스트도 입력되지 않았을 경우에는 메모를 삭제합니다.
  • 작성된 텍스트에서 사용자가 리턴키를 입력하기 전은 제목, 나머지는 내용으로 저장합니다.
  • 우측 상단 공유 버튼을 클릭하면 메모 텍스트가 UIActivityViewController를 통해 공유됩니다.
  • 완료 버튼을 누르거나, 편집 상태가 끝나거나 백버튼 액션, 제스쳐를 통해 이전 화면으로 되돌아 갈 경우 메모가 저장됩니다.
  • 메모 수정화면일 경우 사용자가 텍스트를 클릭하면 편집상태가 됩니다.
  • 편집상태가 될 때 우측의 공유버튼과 완료버튼이 보입니다.
@heydoy heydoy self-assigned this Sep 3, 2022
@heydoy heydoy changed the title [Feat]: 메모 작성/수정 화면에서 기능을 구현합니다. [Feature]: 메모 작성/수정 화면에서 기능을 구현합니다. Sep 3, 2022
@heydoy heydoy added the Feature label Sep 3, 2022
heydoy added a commit that referenced this issue Sep 3, 2022
heydoy added a commit that referenced this issue Sep 3, 2022
[Feature] - #18 작성하기 기능 및 저장 구현
heydoy added a commit that referenced this issue Sep 4, 2022
[Feature] - #18 작성화면에서 편집중일 때 바버튼이 뜹니다.
heydoy added a commit that referenced this issue Sep 4, 2022
[Feature] - #18, #20 delegate를 이용해서 업데이트 메모 저장
@heydoy
Copy link
Owner Author

heydoy commented Sep 4, 2022

📌 발견 못 했던 실수

  1. 자꾸 delegate 에 VC를 못 넣는다는 에러가 떴는데, 프로토콜 선언할 때 ':'이게 아니라 '='이걸로 선언하고 못찾은 것이었다. var delegate = protocol? 로 쓴 것.... 🫣
  2. Realm에 업데이트할 때 writeTransaction이 달라서 업데이트를 못하는 에러가 계속 떴다. 수정하는 뷰에서 새로운 repository를 이용해 저장했기 때문이었다. 그렇지만 잘 이해는 되지 않는다.... 1의 delegate로 해결함.

@heydoy heydoy pinned this issue Sep 4, 2022
@heydoy heydoy closed this as completed Sep 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant