Remove unneeded protocol and methods on VectortHostingController

This commit is contained in:
David Langley
2021-09-07 22:49:11 +01:00
parent cf8c805589
commit fea49baf53
2 changed files with 1 additions and 10 deletions
@@ -27,21 +27,12 @@ class VectorHostingController: UIHostingController<AnyView> {
// MARK: Private
private var theme: Theme
init() {
self.theme = ThemeService.shared().theme
super.init(rootView: AnyView(EmptyView()))
}
init<Content>(rootView: Content) where Content: View {
self.theme = ThemeService.shared().theme
super.init(rootView: AnyView(rootView.vectorContent()))
}
func setRoot<V: View>(view: V) {
rootView = AnyView(view)
}
required init?(coder aDecoder: NSCoder) {
fatalError("VectorHostingViewController does not currently support init from nibs")
}