Skip to content

Commit

Permalink
Remove lazy var usage
Browse files Browse the repository at this point in the history
  • Loading branch information
dus7 committed Apr 8, 2024
1 parent 9553442 commit 2cb3e97
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions DuckDuckGo/OnboardingViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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?

Expand Down

0 comments on commit 2cb3e97

Please sign in to comment.