Post

Replies

Boosts

Views

Activity

Comment on pushViewController crashed but I don't know why
actually, I can't reproduce the crash and the app is a bit complex, the main RootViewController separates the logged(authenticated) ( tab view controller) state and (non authenticated) (ViewController) to switch between the two states I am using this code     current.willMove(toParent: nil)     addChild(new)     new.view.frame = initialFrame           transition(from: current, to: new, duration: 0.3, options: [], animations: {       new.view.frame = self.view.bounds     }) { completed in       self.current.removeFromParent()       self.current.didMove(toParent: nil)       new.didMove(toParent: self)       self.current = new       completion?()     }```
Topic: UI Frameworks SubTopic: UIKit Tags:
Nov ’21