PSPDFCollectionReusableFilterView
Objective-C
@interface PSPDFCollectionReusableFilterView : UICollectionReusableView
Swift
class CollectionReusableFilterView : UICollectionReusableView
A view that is suitable to display a (sticky) filtering interface for a collection view.
-
The active UI element. Setting this property to a new value inserts it to the view hierarchy and takes care of positioning it neatly.
Declaration
Objective-C
@property (nonatomic, nullable) UISegmentedControl *filterElement;
Swift
var filterElement: UISegmentedControl? { get set }
-
The offset of the filter element from being centered.
Declaration
Objective-C
@property (nonatomic) CGPoint filterElementOffset;
Swift
var filterElementOffset: CGPoint { get set }
-
The minimum amount of space between the filterElement’s alignment rectangle and bounds of the receiver — defaults to
PSPDFCollectionReusableFilterViewDefaultMargin
on all edges.Note
The priority of this minimum margin isUILayoutPriorityRequired
. Therefore, if you want the alignment rect of the filterElement to extend beyonds the bounds of this view, you have to set a negative value for that edge.Declaration
Objective-C
@property (nonatomic) UIEdgeInsets minimumFilterMargin;
Swift
var minimumFilterMargin: UIEdgeInsets { get set }
-
The background style of this view.
Declaration
Objective-C
@property (nonatomic) PSPDFCollectionReusableFilterViewStyle backgroundStyle;
Swift
var backgroundStyle: CollectionReusableFilterView.Style { get set }