mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
767 B
Swift
20 lines
767 B
Swift
// Copyright © 2022 Rangeproof Pty Ltd. All rights reserved.
|
|
|
|
import Foundation
|
|
|
|
public enum DismissType {
|
|
/// If this screen is within a navigation controller and isn't the first screen, it will trigger a `popViewController` otherwise
|
|
/// this will trigger a `dismiss`
|
|
case auto
|
|
|
|
/// This will only trigger a `popViewController` call (if the screen was presented it'll do nothing)
|
|
case pop
|
|
|
|
/// This will only trigger a `popToRootViewController` call (if the screen was presented it'll do nothing)
|
|
case popToRoot
|
|
|
|
/// This will only trigger a `dismiss` call (if the screen was pushed to a presented navigation controller it'll dismiss
|
|
/// the navigation controller, otherwise this will do nothing)
|
|
case dismiss
|
|
}
|