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
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
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
Hello,
I'm trying to find a way to send notifications to the devices my app is installed on, but I can't find a way to do this using PHP. Could you help me find an article or something to understand how to implement this into my app (in PHP)?
Best regards,
Alex Sofonea