Post

Replies

Boosts

Views

Created

Open link from WKWebKit in Safari
Hello, I have inside my app a WKWebView which opens a webpage which contains a link to another external page. I want that external page to pe opened in Safari when accessed but I don't know how to do it. This is how I define the view: struct view : UIViewRepresentable {     let request: URLRequest     func makeUIView(context: Context) -> WKWebView  {         return WKWebView()     }     func updateUIView(_ uiView: WKWebView, context: Context) {         uiView.load(request)     } } This is how I implement it: view(request: URLRequest(url: URL(string: " [my url] ")!)).previewLayout(.fixed(width: .infinity, height: .infinity)) So if the url [my url] changes, than that link should be opened in Safari. Thanks in advanced for the help. Best regards, Alex Sofonea
0
0
338
Sep ’22
In app purchase for donations
Hello, I want to add a "Buy the Developer a Cup of Coffee" button inside a WKWebKit. Do I need to add in app purchase or use Apple Pay for that or I can use any other method. If I need the in app purchase is it possible to implement it into a WKWebKit? Also if it is possible with any other payment method can somebody give me some examples of platforms that can help me with that? Best Regards, Alex Sofonea
0
0
343
Sep ’22