FrameBuilder

@objc(IMGLYFrameBuilderProtocol) 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) -> UIImage?

    Parameters

    size

    The desired size of the output image.

    relativeScale

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

    Return Value

    The resulting asset.