-- My question
//TODO: alert animation
/*
@discardableResult
func vcToPopIn() -> CustomerGroupTableViewController {
guard topVC == nil else {
return topVC!
}
topVC = CustomerGroupTableViewController()
let dispatchTime = DispatchTime.now() + .seconds(1)
DispatchQueue.main.asyncAfter(deadline: dispatchTime) {
self.loadGroupTreeMap()
}
return topVC!
}
func dismiss() {
}
*/
-- Solution
To use UIPresentationController to present this page, related open source project: