Skip to content

Conversation

@051198Hz
Copy link
Collaborator

@051198Hz 051198Hz commented Dec 5, 2024

관련 이슈

✅ 완료 및 수정 내역

  • 순서 변경 및 길이 편집 로직 보완 및 UI연결

🛠️ 테스트 방법

  • 직접 실행하여 테스트 가능합니다.

📝 리뷰 노트

  • 딕셔너리로 관리하던 동영상이 인덱스가 계속 달라지는 현상이 있어 부득이하게 리스트로 관리하게 됐습니다.
  • 순서 변경 시 드랍하는 셀로 화면이 이동하도록 애니메이션을 추가했습니다.

장원영님 마무리 부탁드리겠슴니다

📱 스크린샷(선택)

  • 순서변경
2024-12-05.10.48.45.mov
  • 길이편집
2024-12-05.10.52.10.mov

Copy link
Collaborator

@jungseokyoung-cloud jungseokyoung-cloud left a comment

Choose a reason for hiding this comment

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

고생하셨습니다!
아까 테스트시에는 타임라인에서 아무런 비디오를 클릭하지 않고도 편집하기 버튼이 눌리더라구요!

let video = editingVideos.remove(at: oldIndex)
editingVideos.insert(video, at: index)

let newVideos = editingVideos.enumerated().map { (index, video) in
Copy link
Collaborator

Choose a reason for hiding this comment

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

P2: 굳이 새로운 변수를 할당할 필요가 없어보입니다

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

이거는 리스트의 인덱스 기반으로 비디오 인덱스를 다시 할당하고있는 코드여서 필요할 것 같슴니다 ㅠㅜ

await timeLineItem.append(item)
}
owner.output.send(.timelineItemsDidChanged(items: newTimelineItems))
// let newTimelineItems = await orderdVideos.asyncCompactMap { video in
Copy link
Collaborator

Choose a reason for hiding this comment

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

P2: 주석 제거 하셔야 할꺼 같습니다!

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

@LURKS02 LURKS02 left a comment

Choose a reason for hiding this comment

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

고생 많으셨습니다!!!!

Copy link
Collaborator

@around-forest around-forest left a comment

Choose a reason for hiding this comment

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

고생하셨습니다ㅠ
늦어서 죄송합니다.

@051198Hz 051198Hz merged commit d3c02c9 into develop Dec 5, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

타임라인 내 동영상의 순서를 변경하고 길이를 편집하는 비즈니스 로직을 구현한다.

4 participants