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

보관함 탭 equalHandleTapped 구현 #648

Closed
youn9k opened this issue Jun 23, 2024 · 0 comments
Closed

보관함 탭 equalHandleTapped 구현 #648

youn9k opened this issue Jun 23, 2024 · 0 comments
Assignees
Labels
3️⃣ Priority: Low 우선순위 하 ✨ Feature 피쳐 개발

Comments

@youn9k
Copy link
Member

youn9k commented Jun 23, 2024

할 일

기능정의: 현재 보고 있는 탭을 또 눌렀을때, 네비게이션 스택에 뷰컨이 2개이상 쌓여있으면 제일 루트로 팝. 아니라면 스크롤 최상단 이동

// Example
public extension HomeViewController {
    func equalHandleTapped() {
        let viewControllersCount: Int = self.navigationController?.viewControllers.count ?? 0
        if viewControllersCount > 1 {
            self.navigationController?.popToRootViewController(animated: true)
        } else {
            scrollView.setContentOffset(CGPoint(x: 0, y: -STATUS_BAR_HEGHIT()), animated: true)
        }
    }
}

추가사항

No response

@youn9k youn9k added ✨ Feature 피쳐 개발 3️⃣ Priority: Low 우선순위 하 labels Jun 23, 2024
@youn9k youn9k self-assigned this Jun 26, 2024
@youn9k youn9k closed this as completed Jul 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3️⃣ Priority: Low 우선순위 하 ✨ Feature 피쳐 개발
Projects
None yet
Development

No branches or pull requests

1 participant