PSPDFStatefulViewControlling
Objective-C
@protocol PSPDFStatefulViewControlling <UIContentContainer>
Swift
protocol StatefulViewControlling : UIContentContainer
Shows a message when the controller is empty.
-
Empty view.
Declaration
Objective-C
@property (nonatomic, nullable) UIView *emptyView;
Swift
var emptyView: UIView? { get set }
-
Loading view.
Declaration
Objective-C
@property (nonatomic, nullable) UIView *loadingView;
Swift
var loadingView: UIView? { get set }
-
Receives the current controller state.
Note
This is KVO observable.Declaration
Objective-C
@property (nonatomic) PSPDFStatefulViewState controllerState;
Swift
var controllerState: StatefulViewState { get set }
-
Sets the controller state and shows/hides the
emptyView
/loadingView
depending on the state.Declaration
Objective-C
- (void)setControllerState:(PSPDFStatefulViewState)controllerState animated:(BOOL)animated;
Swift
optional func setControllerState(_ controllerState: StatefulViewState, animated: Bool)