# How to inject TON's WalletKit into WebView on iOS platform (https://docs-fpm2731fy-ton-core-docs.vercel.app/llms/ecosystem/walletkit/ios/webview/content.md)



<Callout type="tip">
  Initialize the WalletKit before injecting it into WebView. See the [initialization guide](/llms/ecosystem/walletkit/ios/init/content.md) for details.
</Callout>

Injecting WalletKit into WebView allows integrating the wallet service with a dApp running in a native WebView and handling its events.

To do so, obtain the dApp injection bridge key — it is the name under which the dApp injects itself in the `window` object.

```swift
import TONWalletKit
import WebKit

let webView = WKWebView()
try webView.inject(walletKit: walletKit, key: /* dApp bridge key */)
webView.load(URLRequest(url: /* dApp URL */))
```

After the injection is complete, handle dApp events from a [custom events handler](/llms/ecosystem/walletkit/android/events/content.md).
