TrackMix example provided by Apple in Swift