CustomPatchFrameBuilder
@available(iOS 9.0, *)
@objcMembers
@objc(PESDKCustomPatchFrameBuilder)
open class CustomPatchFrameBuilder : NSObject, FrameBuilder
A framebuilder for custom patches. Each patch consists of four groups. There are two basic layouts. The first one places the top and bottom group above the full width of the image, and the left and right group in between. The second layout works the other way around.
-
Returns a newly allocated instance of
CustomPatchFrameBuilder
.Declaration
Swift
public init(configuration: CustomPatchConfiguration)
Parameters
configuration
The configutation to use.
-
Builds an asset following the configuration settings, for the chosen size.
Declaration
Swift
public 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.
Return Value
The resulting asset.