Posts

Post not yet marked as solved
0 Replies
282 Views
Hi am looking for help, I have completed my xcode project following different course online, but now I need to name my links.I have created some links in a menu which when in the app pop up showing the domain I want it to show some text and not the domain but still take you the domain for example just apple not apple.comHere is my code below: @objc func openTapped() { let ac = UIAlertController(title: "Open Page...", message: nil, preferredStyle: .actionSheet) ac.addAction(UIAlertAction(title: "apple.com", style: .default, handler: openPage)) ac.addAction(UIAlertAction(title: "google.com", style: .default, handler: openPage)) ac.addAction(UIAlertAction(title: "outlook.com", style: .default, handler: openPage)) ac.addAction(UIAlertAction(title: "Cancel" , style: .cancel)) ac.popoverPresentationController?.barButtonItem = navigationItem.rightBarButtonItem present (ac, animated: true) } func openPage(action: UIAlertAction) { guard let actionTitle = action.title else { return } guard let url = URL(string: "https://" + actionTitle) else { return } webView.load(URLRequest(url: url)) } func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) { title = webView.title } }
Posted Last updated
.
Post not yet marked as solved
3 Replies
2.0k Views
Hi,I am looking to see if anyone else is struggling with this, I have had an App with web-view for ages, it was designed by a developer and now Apple are pulling WebView, not just this they still have not implemented Push on PWA which is going to really put us in a position which could cost a lot of money. We would need to get the developer to redevelop the app £1000+, the site is a PWA but as you know has its limitations due to Apple's rules and agenda. So I have a choice abandon the iOS app and contuine with the Android App with Push and tell my iOS users to use the PWA without Push. I am kind of angry at Apple over this. Also my Developer account has now expired and I see no reason to renew it over this decision.What are people's thoughts?
Posted Last updated
.