diff --git a/DuckDuckGo/OnboardingViewController.swift b/DuckDuckGo/OnboardingViewController.swift index 37fdf8ff71..15b95b78ab 100644 --- a/DuckDuckGo/OnboardingViewController.swift +++ b/DuckDuckGo/OnboardingViewController.swift @@ -35,9 +35,10 @@ class OnboardingViewController: UIViewController, Onboarding { @IBOutlet weak var contentContainer: UIView! @IBOutlet weak var buttonsContainer: UIView! - private var buttonsModel: OnboardingActions.Model = .init() - - private lazy var buttonsController = UIHostingController(rootView: OnboardingActions(viewModel: buttonsModel)) + private let buttonsController = UIHostingController(rootView: OnboardingActions(viewModel: .init())) + private var buttonsModel: OnboardingActions.Model { + self.buttonsController.rootView.viewModel + } var contentController: OnboardingContentViewController?