swift go to root view controller
// For Navigation
self.navigationController?.popToRootViewController(animated: true)
// For Presenting modally
self.view.window!.rootViewController?.dismissViewControllerAnimated(false, completion: nil)
Also in Swift:
- array swift
- swift check dictionary has key
- how can i play video with url in a view in swift
- didselectrowatindexpath not called swift
- how to have diffrent size images in a stack view swift
- navigationview hide header swiftui
- sqlite in swift
- swift move textfield when keyboard appears
- how to compose a custom scene in swiftui
- how to get appdelegate object in swift
- how to low case string swift
- Decimal to Double conversion in Swift
- swift corner radious of view controller
- ios swift convert int to string
- swift change status bar color
- text field passing data
- xcode macosx have view resize when window size changed
- swift uitableview insert cell
- detect textfield change swiftui
- swift compare strings
- Sending array of dictionaries with alamofire
- swift go to root view controller
- how to get the path of selected PDF/doc from file manager in ios swift programmatically
- swift clear user defaults