@interface PSPDFAppearanceModeManager : NSObject
Coordinates appearance mode changes.
On iOS versions prior to iOS 13, this class will update the PDF page rendering style, as well as the UI appearance of certain UI widgets when transitioning in and out of the dark interface style.
On iOS 13 and later the this class will only change the PDF page rendering style. Any UI appearance changes should be instead handled by the host application via the delegate methods this class offers.
Sets the appearance mode.
- (void)setAppearanceMode:(PSPDFAppearanceMode)appearanceMode animated:(BOOL)animated;
func setAppearanceMode(_ appearanceMode: PSPDFAppearanceMode, animated: Bool)
The new mode to apply.
Fades any theme changes if set to
YES. This parameter is not relevant on iOS 13 and later.