Note : for easy understand firstly read this file once / follow steps in new project from this ReadMe file or from this Video
- Go to Project -> Target Section -> Plus add Target -> Select App -> Add new app
-
Add Your sub project Files to your New Sub Target
-
Clean & Build for certain No issues
-
Check files in [ Sub App ] you want to use in [ Main App ] in 2 Target
Note : Must 2 Target have no the same name files if you will use it
- Call Files inside [ Main App -> Technicalisto_Project ] like navigate to SubVC from ViewControllrt like this
let storyboard = UIStoryboard(name: "Main_Sub", bundle: nil)
let VC = storyboard.instantiateViewController(withIdentifier: "SubVC") as? SubVC
VC?.modalPresentationStyle = .fullScreen
self.present(VC!, animated: true, completion: nil)
- If You want to Back to [ Main App ] you can dismiss like this
self.dismiss(animated: true, completion: nil)
- If You want to navigate to [ Main App ] without dismiss ,,, You Must Check this file to use in [ Sub App ] & Add Code Navigate
let storyboard = UIStoryboard(name: "Main", bundle: nil)
let VC = storyboard.instantiateViewController(withIdentifier: "ViewController") as? ViewController
VC?.modalPresentationStyle = .fullScreen
self.present(VC!, animated: true, completion: nil)
This app is inspired by Aya Baghdadi” and copyright for @Technicalisto