Skip to content

[Feature] 영화 검색 구현#17

Merged
minneee merged 14 commits intomainfrom
feature/search-movie
Oct 17, 2025
Merged

[Feature] 영화 검색 구현#17
minneee merged 14 commits intomainfrom
feature/search-movie

Conversation

@minneee
Copy link
Contributor

@minneee minneee commented Oct 17, 2025

✨ 작업 내용

  • 영화 검색 로직 구현

Checklist

  • 브랜치를 가져와 작업한 경우 이전 브랜치에 PR을 보냈는지 확인
  • 빌드를 위해 SceneDelegate 수정한 것 PR로 올리지 않았는지 확인
  • 필요없는 주석, 프린트문 제거했는지 확인
  • 컨벤션 지켰는지 확인
  • final, private 제대로 넣었는지 확인
  • 다양한 디바이스에 레이아웃이 대응되는지 확인
    • iPhone SE
    • iPhone 13
    • iPhone 13 Pro Max

Copy link
Contributor

@Roy-wonji Roy-wonji left a comment

Choose a reason for hiding this comment

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

@minneee 수고 하셨습니다

struct MovieSearchFeature {
@ObservableState
struct State: Equatable {
var nowPlayingMovies: [Movie] = []
Copy link
Contributor

Choose a reason for hiding this comment

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

@minneee 이걸 하나로 합치는거 어떨까요 ??

Copy link
Contributor Author

Choose a reason for hiding this comment

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

하나로 합치는게 어떻게 하는걸 말씀하시는거에요??

Copy link
Contributor

@Peter1119 Peter1119 left a comment

Choose a reason for hiding this comment

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

이전 코드리뷰가 함께 있는데 이럴경우에는 앞선 브랜치를 main에 머지하고
search 브랜치에 당기면 중복 부분이 사라집니다 ~!
고생하셨습니다 ~!

Comment on lines +49 to +59
var aggregatedMovies: [Movie] {
let combined = nowPlayingMovies + upcomingMovies + popularMovies
var unique: [Movie] = []
var seenIDs = Set<Int>()

for movie in combined where seenIDs.insert(movie.id).inserted {
unique.append(movie)
}

return unique
}
Copy link
Contributor

Choose a reason for hiding this comment

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

어떤 동작인지 잘 모르겠어요
주석을 달아주시면 좋을 것 같습니다 ~!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

영화 목록들이 배열 여러개로 있어서 하나로 합친 로직입니다! 복잡한 것 같아서 간단하게 수정했습니당

@minneee minneee merged commit 5c9cb27 into main Oct 17, 2025
@minneee minneee deleted the feature/search-movie branch October 17, 2025 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants