Skip to content

Commit

Permalink
Merge pull request #15 from zenangst/fix/compiler-errors-on-tvos
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztofzablocki authored Apr 7, 2022
2 parents 41dcdfc + c6a1025 commit d8def72
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/Inject/Integrations/Hosts.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,13 @@ public class _InjectableViewControllerHost<Hosted: InjectViewControllerType>: In
instance.didMove(toParent: self)

title = instance.title
#if !os(tvOS)
navigationItem.titleView = instance.navigationItem.titleView
navigationItem.backButtonTitle = instance.navigationItem.backButtonTitle
navigationItem.backBarButtonItem = instance.navigationItem.backBarButtonItem
navigationItem.leftBarButtonItems = instance.navigationItem.leftBarButtonItems
navigationItem.rightBarButtonItems = instance.navigationItem.rightBarButtonItems
#endif
#endif

instance.view.translatesAutoresizingMaskIntoConstraints = false
Expand Down

0 comments on commit d8def72

Please sign in to comment.