Post

Replies

Boosts

Views

Activity

Webkit Memory leak in iOS
I have a memory leak on WebKit, and profiling through Xcode instruments gives a memory leak on the following. WKHoverPlatter 1 0x281e7f7e0 96 Bytes WebKit -[WKContentView(WKInteraction) setUpInteraction] Would anyone know how to fix this? Here is my sample test code : var webView: WKWebView! override func loadView() {         let webConfiguration = WKWebViewConfiguration()         webView = WKWebView(frame: .zero, configuration: webConfiguration)         webView.uiDelegate = self         view = webView } override func viewDidLoad() { super.viewDidLoad()         let myURL = URL(string:"https://www.apple.com")         let myRequest = URLRequest(url: myURL!)         webView.load(myRequest) }
4
1
2.1k
Apr ’22