Last active
June 21, 2020 19:16
-
-
Save aryasurya21/0ac7e0a41bec2c3c0225c3647994dbac to your computer and use it in GitHub Desktop.
SwitchContentController function in HomeViewController
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private func switchContentController(_ destinationVC: UIViewController){ | |
destinationVC.view.frame = CGRect( | |
x: 0, | |
y: 0, | |
width: self.containerView.frame.width, | |
height: self.containerView.frame.height | |
) | |
self.containerView.addSubview(destinationVC.view) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment