Skip to content

Feature/#517 프로필 공유하기 및 백스와이프 iOS26 대응#518

Merged
wngus4296 merged 6 commits intodevelopfrom
feature/#517-share-profile
Dec 15, 2025
Merged

Feature/#517 프로필 공유하기 및 백스와이프 iOS26 대응#518
wngus4296 merged 6 commits intodevelopfrom
feature/#517-share-profile

Conversation

@wngus4296
Copy link
Copy Markdown
Collaborator

@wngus4296 wngus4296 commented Nov 1, 2025

작업한 내용

  • 프로필 공유하기 기능 추가
  • 홈 서치바 제거
  • 백스와이프 iOS26대응 (interactivePopGestureRecognizer -> interactiveContentPopGestureRecognizer)
extension BooltiViewController: UIGestureRecognizerDelegate {

    func setPopGestureRecognizer(isEnable: Bool) {
        isBackSwipeEnabled = isEnable
        guard let nav = navigationController else { return }

        if let popGesture = nav.interactivePopGestureRecognizer {
            popGesture.delegate = self
            popGesture.isEnabled = isEnable
        }

        if #available(iOS 26.0, *), let contentPopGesture = nav.interactiveContentPopGestureRecognizer {
            contentPopGesture.delegate = self
            contentPopGesture.isEnabled = isEnable
        }

        nav.view.gestureRecognizers?.forEach { gesture in
            if String(describing: type(of: gesture)).contains("Navigation") {
                gesture.isEnabled = isEnable
            }
        }
    }

    func gestureRecognizerShouldBegin(_ gestureRecognizer: UIGestureRecognizer) -> Bool {
        guard let nav = navigationController else { return true }

        if #available(iOS 26.0, *) {
            if gestureRecognizer == nav.interactivePopGestureRecognizer ||
               gestureRecognizer == nav.interactiveContentPopGestureRecognizer {
                return isBackSwipeEnabled
            }
        } else {
            if gestureRecognizer == nav.interactivePopGestureRecognizer {
                return isBackSwipeEnabled
            }
        }
        return true
    }
}
  • 기존 프로필 백스와이프 막은 부분 swipe 감지해서 popup 띄우기
        let edgePan = UIScreenEdgePanGestureRecognizer()
        edgePan.edges = .left

        self.view.addGestureRecognizer(edgePan)

        edgePan.rx.event .subscribe(with: self) { owner, gesture in
            if gesture.state == .began { owner.viewModel.input.didBackButtonTapped.onNext(()) }
        } .disposed(by: self.disposeBag)

스크린샷

image image image

관련 이슈

@wngus4296 wngus4296 self-assigned this Nov 1, 2025
@wngus4296 wngus4296 merged commit ea91ebb into develop Dec 15, 2025
@wngus4296 wngus4296 deleted the feature/#517-share-profile branch December 15, 2025 13:10
@wngus4296 wngus4296 mentioned this pull request Jan 17, 2026
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.

[FEATURE] 프로필 공유하기 구현

1 participant