Skip to content

Instantly share code, notes, and snippets.

@hk0i
Created April 10, 2017 18:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hk0i/e585ef7abecb5e5f886d98d19ec96f1a to your computer and use it in GitHub Desktop.
Save hk0i/e585ef7abecb5e5f886d98d19ec96f1a to your computer and use it in GitHub Desktop.
var videoSources: [CtsVideoSource] {
var sources = [CtsVideoSource]()
for lv in left {
// for each left video
if let source = lv.videoSource {
sources.append(source)
}
}
for rv in right {
// for each right video
if let source = rv.videoSource {
sources.append(source)
}
}
} // videoSources
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment