Skip to content

Instantly share code, notes, and snippets.

@xcadaverx
Created January 20, 2017 23:47
Show Gist options
  • Save xcadaverx/b238fbf3832fb1472f4e2ddea7104615 to your computer and use it in GitHub Desktop.
Save xcadaverx/b238fbf3832fb1472f4e2ddea7104615 to your computer and use it in GitHub Desktop.
let firstHalf = CMTimeRange(start: kCMTimeZero, duration: CMTime(value: 15, timescale: 1))
track.scaleTimeRange(firstHalf, toDuration: fullRange.duration)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment