PSPDFStatefulViewControlling
@protocol PSPDFStatefulViewControlling <UIContentContainer>
Shows a message when the controller is empty.
-
Empty view.
Declaration
Objective-C
@property (assign, readwrite, nonatomic, nullable) UIView *emptyView;
Swift
var emptyView: UIView? { get set }
-
Loading view.
Declaration
Objective-C
@property (assign, readwrite, nonatomic, nullable) UIView *loadingView;
Swift
var loadingView: UIView? { get set }
-
Receives the current controller state.
Note
This is KVO observable.Declaration
Objective-C
@property (assign, readwrite, nonatomic) PSPDFStatefulViewState controllerState;
Swift
var controllerState: PSPDFStatefulViewState { 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: PSPDFStatefulViewState, animated: Bool)