swift pop to specific view controller
let viewControllers: [UIViewController] = self.navigationController!.viewControllers
for aViewController in viewControllers {
if aViewController is YourViewController {
self.navigationController!.popToViewController(aViewController, animated: true)
}
}
Also in Swift:
- text field passing data
- convert string to base64 swift
- add border to button swiftui
- rounded ios button
- how to dismiss keyboard swiftui
- swift change navigation bar color
- swift quit app
- blur background swiftui
- swift 5 only the day number from date
- show back button in navbar swift
- how to detect widget family and return specific view widget swift
- Close iOS Keyboard by touching anywhere using Swift
- round up swift
- swift uiview add tap gesture
- view will appear
- swift animate a label ishidden
- ios swift convert int to string
- swift get current hour
- swift toggle on change
- how to set the center in view in swift
- shadow color swiftui
- swift assign tuple to variables
- remove padding hstack swiftui
- register page