Container

public protocol Container

Container abstracts away from the difference of UIView and UIViewController

With the Container protocol, UIView and UIViewController objects can be used interchangeably, e.g. when embedding containers into containers.

  • The view of the Container.

    Note

    It might not exist for a UIViewController.

    Declaration

    Swift

    var view: UIView! { get }
  • The viewController of the Container.

    Note

    It might not exist for a UIView.

    Declaration

    Swift

    var viewController: UIViewController! { get }