Thursday, April 23, 2026
HomeiOS DevelopmentVC presenter just isn't being initialized put together for segue IOS swift

VC presenter just isn’t being initialized put together for segue IOS swift

[ad_1]

Howdy i’m dealing with the issue because the put together for segue operate just isn’t working correctly i’ve the code are you able to please inform me how am i able to debug it because it has optionally available situations how i can take away them and test what’s the issue or what i’m doing incorrect as i simply desire a class to be initialized in goal vc earlier than the app navigates to different display.

@IBAction func filterBtnPressed(_ sender: Any) {
    
    self.performSegue(withIdentifier: "FilterSessionVC", sender: self)
}

override func put together(for segue: UIStoryboardSegue, sender: Any?) {
    if segue.identifier == "FilterSessionVC", let navigation = segue.vacation spot as? UINavigationController, let vc = navigation.topViewController as? FilterSessionVC {
            vc.presenter = FilterSessionPresenterImplementation()
        }
    }

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments