/CMTimeUtils

Simplifying CMTime and CMTimeRange operations in Apple's Core Media framework.

Primary LanguageSwiftMIT LicenseMIT

CMTimeUtils

CMTimeUtils is a Swift library designed to simplify working with CMTime and CMTimeRange in Apple's Core Media framework. It provides utility functions for common operations such as splitting time ranges, calculating midpoints, and generating strides of CMTime values.

Installation

CMTimeUtils is available through Swift Package Manager.

Swift Package Manager

  1. Add the following dependency to your Package.swift file:
dependencies: [
    .package(url: "https://github.com/skyfe79/CMTimeUtils.git", from: "0.0.1")
]
  1. Run swift build to build the project.

License

CMTimeUtils is distributed under the MIT license. See the LICENSE file for more details.