Created
May 12, 2021 08:32
-
-
Save marlonjames71/4053d84ad2fc0adcf9a300530e100197 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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