PSPDFColorPickerFactory


@interface PSPDFColorPickerFactory : NSObject

The factory used to create color pickers. Subclass this to customize your color pickers.

  • You can override this method to customize the color palettes for a certain color set.

    Note

    When overriding, design your method so that it can handle arbitrary values for the colorSet parameter. You can either return your own default palettes if you are experiencing unknown values or return super’s return value to fall back to PSPDFKit’s internal color palettes.

    Declaration

    Objective-C

    + (nonnull NSArray<PSPDFColorPalette *> *)colorPalettesInColorSet:
        (PSPDFColorSet)colorSet;

    Swift

    class func colorPalettes(in colorSet: PSPDFColorSet) -> [PSPDFColorPalette]

    Parameters

    colorSet

    The color set whoes color palettes are requested.

    Return Value

    An array of PSPDFColorPalettes representing the passed in color set.