Skip to content

[Fix] #129 - 2차 QA 반영#130

Merged
EunHee-Jeong merged 9 commits intoTeamRecorDream:developfrom
EunHee-Jeong:fix/#129
Jan 26, 2023
Merged

[Fix] #129 - 2차 QA 반영#130
EunHee-Jeong merged 9 commits intoTeamRecorDream:developfrom
EunHee-Jeong:fix/#129

Conversation

@EunHee-Jeong
Copy link
Copy Markdown
Member

@EunHee-Jeong EunHee-Jeong commented Jan 24, 2023

👻 작업한 내용

  • 검색뷰에서도 꿈 기록을 삭제했을 때 즉각적으로 fetch 되도록 수정하였습니다.
  • collectionView 내부를 탭해도 (검색 전, 셀들 채워지지 않았을 때 + 검색 후, 배경부) 키보드가 내려가도록 구현하였습니다.
  • 보관함뷰의 SegmentedControl 이미지를 교체하였습니다.
  • 레이아웃 세부사항들을 수정하였습니다. (보관함에서 감정 이미지가 간헐적으로 변하는 현상 막기, 리스트 보기 시 이미지 뷰가 위로 쏠려있는 부분 수정)

🎤 PR Point

  • collectionView 내부를 탭해도 키보드가 내려가도록 구현하는 부분에서, 검색 결과가 존재한다면 셀을 눌렀을 때 해당하는 꿈 카드의 상세보기로 이동해야 하고 / 셀 바깥을 탭했을 때는 키보드가 내려가게 구현해야 했는데요 ! tapGesture가 셀이 아닌 컬렉션뷰 전체를 감지하는 상황이기 때문에 탭이 두 번 되어야 올라와있던 키보드가 내려가도록 어림잡아 설정하였습니다. 좋은 방법은 아닌 것 같은데 적절한 해결법이 있다면 조언 부탁드립니다... 😵‍💫

📮 관련 이슈

@EunHee-Jeong EunHee-Jeong added 으니짱 🍅 담당자 feat 구현·개선 사항에 관련된 내용입니다. fix 버그를 수정합니다. labels Jan 24, 2023
@EunHee-Jeong EunHee-Jeong self-assigned this Jan 24, 2023
L-j-h-c
L-j-h-c previously approved these changes Jan 24, 2023
Copy link
Copy Markdown
Contributor

@L-j-h-c L-j-h-c 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 42 to +49
self.addSubview(lineView)
self.backgroundColor = RDDSKitAsset.Colors.white04.color
self.backgroundColor = RDDSKitAsset.Colors.dark.color
self.borderColor = .clear
self.selectedSegmentIndex = 0
self.setImage(RDDSKitAsset.Images.icnGalleryOn.image, forSegmentAt: 0)
self.setImage(RDDSKitAsset.Images.icnListOn.image, forSegmentAt: 1)
self.selectedSegmentTintColor = RDDSKitAsset.Colors.white04.color
self.tintColor = RDDSKitAsset.Colors.white04.color
self.selectedSegmentTintColor = RDDSKitAsset.Colors.dark.color
self.tintColor = RDDSKitAsset.Colors.dark.color
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

혹시 요부분 완성된 이미지도 공유해주시면 감사하겠습니다 ㅎㅎ

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

풀받아서 확인해보니 색이 바뀌어서 애니메이션이 보이지 않는데, 디자인과 협의하고 반영하는 것이 편하지 않을까요?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

변경 요청이 들어와서 논의 후에 변경하였습니다!

Comment on lines +117 to +128
private func addTapGestureForCollectionView() {
let tap = UITapGestureRecognizer(target: self, action: #selector(didTapOutsideCollectionView))
tap.numberOfTapsRequired = 2
self.dreamSearchCollectionView.addGestureRecognizer(tap)
}
@objc
private func didTapOutsideCollectionView(_ recognizer: UITapGestureRecognizer) {
let tapLocation = recognizer.location(in: self.view)
if dreamSearchCollectionView.indexPathForItem(at: tapLocation) == nil {
self.view.endEditing(true)
}
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

제스쳐 활용을 이런식으로 할 수도 있네요..! 배워갑니다~~

PR에 남겨주신 부분 보고 고민해 보았는데, 아이템이 있냐 없냐에 따라 액션을 다르게 주면 해결 가능할 것 같습니다!

    private func addTapGestureForCollectionView() {
        let tap = UITapGestureRecognizer(target: self, action: #selector(didTapOutsideCollectionView))
        self.dreamSearchCollectionView.addGestureRecognizer(tap)
    }
    @objc
    private func didTapOutsideCollectionView(_ recognizer: UITapGestureRecognizer) {
        let tapLocation = recognizer.location(in: self.dreamSearchCollectionView)
        let indexPathForTap = dreamSearchCollectionView.indexPathForItem(at: tapLocation)
        let tappedOutOfItems = indexPathForTap == nil
        if let row = indexPathForTap?.row {
            self.selectedIndex.accept(row)
        } else {
            self.view.endEditing(true)
        }
    }

Copy link
Copy Markdown
Contributor

@L-j-h-c L-j-h-c Jan 24, 2023

Choose a reason for hiding this comment

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

이렇게 되면 collectionView의 select가 먹히지 않기 때문에 컬렉션뷰 딜리게이트 메서드는 삭제해도 될 것 같아요!

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

오호 location의 index를 먼저 뽑아오는군요... 좋은 방법쓰... 적용하겠습니다아 👍

@L-j-h-c
Copy link
Copy Markdown
Contributor

L-j-h-c commented Jan 24, 2023

추가로 수정이 필요한 부분이 보여서 남깁니다..! QA 보드에는 작성하지 않았어요~ @EunHee-Jeong

KakaoTalk_Photo_2023-01-25-03-34-17

  1. 스테이터스바, 컬렉션뷰 배경, 뷰의 배경이 색상이 다름(밝기 올려서 보면 잘보여요~)
  2. empty한 검색을 한 경우 하단 로고가 2개 만들어짐

Suyeon9911
Suyeon9911 previously approved these changes Jan 25, 2023
Copy link
Copy Markdown
Member

@Suyeon9911 Suyeon9911 left a comment

Choose a reason for hiding this comment

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

수고하셨습니다 !! CollectionView를 2번 탭해서 인식해주는 방식도 있겠지만, 사용자가 의도한 바를 모를 가능성이 크다고 생각합니다. 또한, 어떤 경우에는 의도하지 않은대로 동작할 가능성도 있어보이구요.. !! 준호 님이 말씀하신대로 selected된 인덱스를 받을 경우엔 상세보기로 이동하고 그 외의 경우를 분기처리해서 키보드를 내려주면 될 것 같아요 !~~

@EunHee-Jeong EunHee-Jeong dismissed stale reviews from Suyeon9911 and L-j-h-c via c311ffe January 25, 2023 11:27
L-j-h-c
L-j-h-c previously approved these changes Jan 25, 2023
Copy link
Copy Markdown
Contributor

@L-j-h-c L-j-h-c left a comment

Choose a reason for hiding this comment

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

LGTM!

let tap = UITapGestureRecognizer(target: self, action: #selector(didTapOutsideCollectionView))
tap.numberOfTapsRequired = 2
tap.numberOfTapsRequired = 1
self.dreamSearchCollectionView.addGestureRecognizer(tap)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

이친구는 생략도 가능할 것 같네요!

Suyeon9911
Suyeon9911 previously approved these changes Jan 26, 2023
@EunHee-Jeong EunHee-Jeong dismissed stale reviews from Suyeon9911 and L-j-h-c via 5dccab3 January 26, 2023 01:28
@EunHee-Jeong EunHee-Jeong merged commit e8f68bd into TeamRecorDream:develop Jan 26, 2023
@EunHee-Jeong EunHee-Jeong deleted the fix/#129 branch January 26, 2023 01:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat 구현·개선 사항에 관련된 내용입니다. fix 버그를 수정합니다. 으니짱 🍅 담당자

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Fix] 2차 QA 반영

3 participants