PSPDFConfigurationSpreadFitting
Objective-C
enum PSPDFConfigurationSpreadFitting : NSInteger {}
Swift
@frozen enum SpreadFitting : Int, @unchecked Sendable
Controls whether spreads can grow larger than the actual view. This can be helpful on smaller screens to make the content more readable.
-
Aspect fit results in a spread view having all its pages always visible on screen. Pages are shown in a size so that everything fits the view.
Declaration
Objective-C
PSPDFConfigurationSpreadFittingFit
Swift
case fit = 0
-
Aspect fills the content so that it completely covers the width of the view for scroll-per-spread layouts and the transverse axis on a continuous scrolling layout.
Declaration
Objective-C
PSPDFConfigurationSpreadFittingFill
Swift
case fill = 1
-
Automatically switches between
.fittingFit
andfittingFill
, depending on the vertical size class in use. If the vertical size class is compact, it uses the fill width mode, otherwise the fit mode.Declaration
Objective-C
PSPDFConfigurationSpreadFittingAdaptive
Swift
case adaptive = 2