Skip to content
Discussion options

You must be logged in to vote

I found out the answer while I was writing the question (it was sort of rubber duck i guess), but I did publish it, so it may help someone, or there might be some problems in my solution someone will point out.

I ended with this:

// SceneDelegate.swift
func handle(proposal: VisitProposal, from navigator: Navigator) -> ProposalResult {
        let tab = proposal.properties["tab", default: ""]
        
        switch tab as! String {
        case "announcements":
            if (tabBarController.selectedIndex == 3) {
                return .accept
            }

            tabBarController.selectedIndex = 3
            tabBarController.navigator(for: HotwireTab.announcements)?.route(proposal)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by janpeterka
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant