Skip to content

Commit

Permalink
Merge pull request #52 from guzhenhuaGitHub/main
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztofzablocki committed Oct 18, 2022
2 parents 008c014 + e436758 commit 0492566
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Inject/Integrations/Hosts.swift
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,10 @@ public class _InjectableViewHost<Hosted: InjectViewType>: InjectViewType {
#else

extension Inject {
public static func ViewControllerHost(_ viewController: InjectViewControllerType) -> InjectViewControllerType {
public static func ViewControllerHost<Hosted: InjectViewControllerType>(_ viewController: Hosted) -> Hosted {
viewController
}
public static func ViewHost(_ view: InjectViewType) -> InjectViewType {
public static func ViewHost<Hosted: InjectViewType>(_ view: Hosted) -> Hosted {
view
}
}
Expand Down

0 comments on commit 0492566

Please sign in to comment.