Skip to content

Commit

Permalink
Move KmpContributorComposeViewControllerWrapper to ContributorFeature
Browse files Browse the repository at this point in the history
  • Loading branch information
yimajo committed Sep 3, 2024
1 parent 8401fc8 commit 1568cd7
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import SwiftUI
import shared
import ComposableArchitecture

public struct KmpContributorComposeViewControllerWrapper: UIViewControllerRepresentable {
public typealias URLString = String
Expand All @@ -8,7 +9,9 @@ public struct KmpContributorComposeViewControllerWrapper: UIViewControllerRepres
private let onContributorsItemClick: (URLString) -> Void

public init(onContributorsItemClick: @escaping (URLString) -> Void) {
self.repositories = Container.shared.get(type: (any Repositories).self)
@Dependency(\.containerClient) var containerClient

self.repositories = containerClient.repositories()
self.onContributorsItemClick = onContributorsItemClick
}

Expand Down

0 comments on commit 1568cd7

Please sign in to comment.