This iOS Multiple Modal contains three view controllers - A main view controller, a first child view controller, and the second child view controller under the first one.
- The first view controller contains a button to open a modal.
- The second view controller contains two buttons, to direct to the next modal, or back to the first view controller
- The thrid view controller contains two buttons, to back to the previous modal, or back to the first view controller
It's purely Swift (sorry but Objective-C is not my favorite, OOF), and using Storyboard (UIKit). I will create another project for purely SwiftUI in the future.
Just clone the whole repository into your local file. It's recommended to use Xcode 13 and above. The minimum deployment version is iOS 15.0.