Questions tagged webkit

Explore the latest questions and answers asked by our top developers.

Swift WebKit Picture in Picture

How can you enable Picture-in-Picture on a Swift WebView from WebKit? At the moment, when you watch a video in a webView and switch to the home screen, you briefly see the picture-in-picture view in the top right on the home screen, but it disappears after a second. How can you retain it so it […]

By Ryan
Categorised as picture-in-picture, swift, webkit, webview Tagged , , ,

Safe area insets (e.g. safe-area-inset-bottom) ignore Safari ‘Aa’ zoom level?

We have the following code adding safe area height to a bottom toolbar so the iOS home bar doesn’t appear over the top of the bottom toolbar icons. /* Extra bottom padding for iPhoneX and iPad Pro Home bar */ @supports (padding: constant(safe-area-inset-bottom)) { .dvFooterContainer1 { –safe-area-inset-bottom: constant(safe-area-inset-bottom); height: calc(var(–safe-area-inset-bottom) + 56px); } } @supports […]

By user1946932
Categorised as css, ios, javascript, safari, webkit Tagged , , , ,

Set UIContextMenu for WKWebView links

How can we set a custom context menu for links within WKWebView? You can set the context menu on an item by doing something like this: let interaction = UIContextMenuInteraction(delegate: self) someItem.addInteraction(interaction) and adding the UIContextMenuInteractionDelegate delegate: func contextMenuInteraction(_ interaction: UIContextMenuInteraction, configurationForMenuAtLocation location: CGPoint) -> UIContextMenuConfiguration? { let configuration = UIContextMenuConfiguration(identifier: nil, previewProvider: nil) { […]

By Ryan
Categorised as contextmenu, swift, webkit, wkwebview Tagged , , ,

Still Have Questions?

Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us