Skip to content

Commit

Permalink
Remove Coordinator
Browse files Browse the repository at this point in the history
  • Loading branch information
porter-stripe committed Jan 15, 2025
1 parent 4c9abc3 commit d80cf80
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,6 @@ struct EmbeddedPaymentElementView: View {
struct EmbeddedViewRepresentable: UIViewRepresentable {
@ObservedObject var viewModel: EmbeddedPaymentElementViewModel

public func makeCoordinator() -> Coordinator {
Coordinator(self)
}

public func makeUIView(context: Context) -> UIView {
let containerView = UIView()
containerView.backgroundColor = .clear
Expand Down Expand Up @@ -200,14 +196,6 @@ struct EmbeddedViewRepresentable: UIViewRepresentable {
// Update the presenting view controller in case it has changed
viewModel.embeddedPaymentElement?.presentingViewController = UIWindow.topMostViewController
}

public class Coordinator: NSObject {
var parent: EmbeddedViewRepresentable

init(_ parent: EmbeddedViewRepresentable) {
self.parent = parent
}
}
}

final class EmbeddedSwiftUIProduct: STPAnalyticsProtocol {
Expand Down

0 comments on commit d80cf80

Please sign in to comment.