RSDPageViewControllerProtocol
public protocol RSDPageViewControllerProtocol
RSDPageViewControllerProtocol
allows replacing the UIPageViewController
in the base class with a different
view controller implementation. It is assumed that the implementation is for a view controller appropriate to
the current device.
-
Set the view controllers.
Note
The default implementation of
RSDTaskViewController
will use a page view controller and will present one view at a time.Declaration
Swift
func setViewControllers(_ viewControllers: [UIViewController]?, direction: RSDStepDirection, animated: Bool, completion: ((Bool) -> Swift.Void)?)
Parameters
viewControllers
The view controllers to add to page view.
direction
The direction of navigation.
animated
Whether or not adding the child view controllers should be animated.
completion
The animation completion handler.