CompositionModel
public struct CompositionModel : Equatable, Uneditable
extension CompositionModel: ObjectiveCBridgeable
A CompositionModel
holds information about the individual video clips that compose the output video.
-
The individual video clips that define the video composition.
Declaration
Swift
public var clips: [VideoClipModel]
-
Searches for a
VideoClipModel
with the givenUUID
.Declaration
Swift
public func clipModel(with uuid: UUID) -> (Int, VideoClipModel)?
Parameters
uuid
The
UUID
of the video clip model to search for.Return Value
A tuple with the index of the video clip model within the video clip model array and the video clip model if it is found,
nil
otherwise.
-
Creates a new
CompositionModel
with an emptyclips
array.Declaration
Swift
public init()
-
Creates a new
CompositionModel
with the given video clips.Declaration
Swift
public init(clips: [VideoClipModel])
Parameters
clips
The individual video clips that define the video composition.