SearchOptions

public struct SearchOptions : OptionSet, CaseIterable, CustomStringConvertible

A set of options for the findViewController method

Options

  • Compare to a view controller provided

    Declaration

    Swift

    public static let current: SearchOptions
  • If a view controller is a container, search in its visible view controllers

    Declaration

    Swift

    public static let visible: SearchOptions
  • If a view controller is a container, search in all the view controllers it contains

    Declaration

    Swift

    public static let contained: SearchOptions
  • Start search from the view controller provided and search in all view controllers it presented

    Declaration

    Swift

    public static let presented: SearchOptions
  • Start search from the view controller provided and search in all view controllers that are presenting it

    Declaration

    Swift

    public static let presenting: SearchOptions
  • Start search from the view controller provided and search in all its parent view controllers

    Declaration

    Swift

    public static let parent: SearchOptions

Combinations

  • If a view controller is a container, search in all the view controllers it contains

    Declaration

    Swift

    public static let currentAllStack: SearchOptions
  • If a view controller is a container, search in all visible view controllers it contains

    Declaration

    Swift

    public static let currentVisibleOnly: SearchOptions
  • Iterate through the all visible view controllers in the stack.

    Declaration

    Swift

    public static let allVisible: SearchOptions
  • Iterate through the all view controllers in the stack.

    Declaration

    Swift

    public static let fullStack: SearchOptions
  • Iterate through the all view controllers on the current level and all the view controllers presented from the current level.

    Declaration

    Swift

    public static let currentAndUp: SearchOptions
  • Iterate through the all view controllers on the current level and all the view controllers that are presenting the current level.

    Declaration

    Swift

    public static let currentAndDown: SearchOptions

Methods

  • Declaration

    Swift

    public static var allCases: [SearchOptions] { get }
  • Declaration

    Swift

    public var description: String { get }