Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save marlonjames71/4053d84ad2fc0adcf9a300530e100197 to your computer and use it in GitHub Desktop.
Save marlonjames71/4053d84ad2fc0adcf9a300530e100197 to your computer and use it in GitHub Desktop.
class MediaViewController: UIViewController {
let mediaItem: MediaItem
init(mediaItem: MediaItem) {
self.mediaItem = mediaItem
}
required init(coder: NSCoder) {
fatalError("Use init(mediaItem: MediaItem)")
}
// … More code
}
class VideoViewController: MediaViewController {
...
}
class PhotoViewController: MediaViewController {
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment