Skip to content

Instantly share code, notes, and snippets.

@azimin
Last active October 15, 2016 14:38
Show Gist options
  • Save azimin/4c38f9e8007335cf32b7 to your computer and use it in GitHub Desktop.
Save azimin/4c38f9e8007335cf32b7 to your computer and use it in GitHub Desktop.
if traitCollection.forceTouchCapability == .available {
registerForPreviewing(with: self, sourceView: view)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment