FrameBuilder

@objc(PESDKFrameBuilderProtocol)
public protocol FrameBuilder

Every frame builder must implement this protocol.

  • Builds an asset following the configuration settings, for the chosen size.

    Declaration

    Swift

    func build(size: CGSize, relativeScale: CGFloat, completion: @escaping ((UIImage?) -> Void))

    Parameters

    size

    The desired size of the output image.

    relativeScale

    The scale of the frame, relative the minimum of width and height.

    completion

    A completion block that gets the resulting image as parameter.