Skip to content

Instantly share code, notes, and snippets.

View knight6700's full-sized avatar
🏠
Working from home

Faris knight6700

🏠
Working from home
  • Link Development
  • Egypt, Cairo
View GitHub Profile
@knight6700
knight6700 / popupWebView.swift
Created January 9, 2024 20:31
handle a webView
@IBOutlet var containerStack: UIStackView!
func webView(
_ webView: WKWebView,
createWebViewWith configuration: WKWebViewConfiguration,
for navigationAction: WKNavigationAction,
windowFeatures: WKWindowFeatures
) -> WKWebView? {
if navigationAction.targetFrame == nil {
let tempURL = navigationAction.request.url