PSPDFCollectionReusableFilterView


@interface PSPDFCollectionReusableFilterView : 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 (assign, readwrite, nonatomic, nullable)
        UISegmentedControl *filterElement;

    Swift

    var filterElement: NSSegmentedControl? { get set }
  • The offset of the filter element from being centered.

    Declaration

    Objective-C

    @property (assign, readwrite, 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 is UILayoutPriorityRequired. 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 (assign, readwrite, nonatomic) UIEdgeInsets minimumFilterMargin;

    Swift

    var minimumFilterMargin: NSEdgeInsets { get set }
  • The background style of this view.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic)
        PSPDFCollectionReusableFilterViewStyle backgroundStyle;

    Swift

    var backgroundStyle: PSPDFCollectionReusableFilterViewStyle { get set }