fix pipeline

This commit is contained in:
JanNiklas Grabowski
2024-01-11 11:19:35 +01:00
parent 72e027cd76
commit 6a10db6a9e

View File

@@ -51,7 +51,7 @@ import Foundation
func makeViewController(parent: UIViewController, toggleData: BWIToggleWithLabelAndSubLabelCellData, onValueChanged:((_ newValue: Bool)-> Void)?) {
self.cellToggleData = toggleData
if let cellToggleData = self.cellToggleData {
hostingController = UIHostingController(rootView: TableViewCellWithLabelSubLabelAndSwitchView(toggleData: bwiToggle, onValueChanged: onValueChanged))
hostingController = UIHostingController(rootView: TableViewCellWithLabelSubLabelAndSwitchView(toggleData: cellToggleData, onValueChanged: onValueChanged))
setupView(parent: parent)
}
}