PSPDFSearchBarPinning
Objective-C
enum PSPDFSearchBarPinning : NSUInteger {}
Swift
@frozen enum SearchBarPinning : UInt, @unchecked Sendable
Visibility options for positioning the search bar.
-
The search bar will be pinned to the top of the view, unless in a popover presentation, in which case the search bar will scroll with the search results. This is the default.
Declaration
Objective-C
PSPDFSearchBarPinningAuto
Swift
case auto = 0
-
The search bar will be displayed at the top of the view like a navigation bar.
Declaration
Objective-C
PSPDFSearchBarPinningTop
Swift
case top = 1
-
The search bar will be embedded inside the table view so it scrolls of the top when scrolling down through the search results.
Declaration
Objective-C
PSPDFSearchBarPinningNone
Swift
case none = 2
-
Hide the search bar completely. This is useful if a toolbar shows a full search bar instead of only a search button.
Declaration
Objective-C
PSPDFSearchBarPinningHidden
Swift
case hidden = 3