To use any UIKit component in SwiftUI, it needs to be wrapped with UIViewRepresentable.
- Create the wrapper struct:

2. UIViewRepresentable requires the ‘makeUIView’ and ‘updateUIView functions to be implemented:

3. Since we are wrapping a ‘WKWebView’ component, replace ‘some UIView’ with ‘WKWebView’ and ‘UIViewType’ with ‘WKWebView’:

4. Now we can develop the WebView wrapper to display web pages specified by a property called ‘urlString’:

Use the WebView wrapper as follows:
