WatermarkOptionsBuilder

@objcMembers
@objc(PESDKWatermarkOptionsBuilder)
open class WatermarkOptionsBuilder : NSObject

The default WatermarkOptionsBuilder for WatermarkOptions.

  • Input image URL for the watermark. No additional processing is performed on the image. Transparency must be supported by the file itself. If nil no watermark will be applied. If the watermark is the only editing operation to be performed, PhotoEditViewControllerOptions.forceExport or VideoEditViewControllerOptions.forceExport must be enabled for the change to be applied.

    Declaration

    Swift

    open var imageURL: URL?
  • The relative size of the watermark. This value is measured in relation to the smaller side of the transformed image/video that the user is editing. The default value is 0.2.

    Note

    Values outside (0.0, 1.0) will be clamped.

    Declaration

    Swift

    open var size: CGFloat { get set }
  • The relative spacing between the edges of the image/video and the watermark. This value is measured in relation to the smaller side of the transformed image/video that the user is editing. The default value is 0.05.

    Note

    Values outside (0.0, 0.5) will be clamped.

    Declaration

    Swift

    open var inset: CGFloat { get set }
  • It defines the layout of the watermark inside the canvas. The default value is .topRight.

    Note

    .center, .topLeft, .topRight, .bottomLeft, .bottomRight are currently supported.

    Declaration

    Swift

    open var alignment: UIView.ContentMode