setViewController(_:for:animated:)
Sets the view controller in the arrangement for a specific placement.
Declaration
@MainActor @preconcurrency final func setViewController(_ viewController: UIViewController?, for placement: UIArrangementViewController.ViewPlacement, animated: Bool = false)Parameters
- viewController:
The view controller to place in the arrangement, or
nilto remove the view controller currently in the placement. - placement:
The placement of the view controller in the arrangement.
- animated:
Whether to animate the view controller transition.