Commit ea550c1b authored by Soomin Lee's avatar Soomin Lee

MediaViewController: MediaDataSource: Mark init() as unavailable

parent 7e1b17fb
......@@ -17,6 +17,11 @@ public class MediaDataSourceAndDelegate: NSObject, UICollectionViewDataSource, U
private var services: Services
public weak var delegate: UICollectionViewDelegate?
@available(*, unavailable)
override init() {
fatalError()
}
init(services: Services) {
self.services = services
super.init()
......
......@@ -40,6 +40,11 @@ public class VLCMediaViewController: UICollectionViewController, UISearchResults
return emptyView
}()
@available(*, unavailable)
init() {
fatalError()
}
init(services: Services) {
self.services = services
super.init(collectionViewLayout: UICollectionViewFlowLayout())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment