mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-30 13:16:58 +02:00
Remove unneeded protocol and methods on VectortHostingController
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user