VESDK/iOS/Concepts
Watermark
VideoEditor SDK for iOS can easily be tailored to meet your business needs. Learn how to swiftly create the editor your use-case requires.
You can configure a watermark image with its relative size and alignment, which is added permanently to the preview and the export.
If adding the watermark is the only editing operation to be performed, forceExport
must be enabled to have the watermark applied to the export.
All of the watermark configuration options are accessible using the global Configuration
builder:
let configuration = Configuration { builder inbuilder.configureVideoEditViewController { options inoptions.forceExport = true}builder.configureWatermark { options inoptions.imageURL = Bundle.main.url(forResource: "watermark", withExtension: "png")options.alignment = .bottomLeftoptions.size = 0.2options.inset = 0.05}}let video = Video(url: Bundle.main.url(forResource: "sample_video", withExtension: "mp4")!)let videoEditViewController = VideoEditViewController(videoAsset: video, configuration: configuration)
WARNING: The watermark itself is not processed, so to achieve the effect of transparency, make sure that your input image supports that (use a PNG file with alpha channel).