Post

Replies

Boosts

Views

Activity

Weird problem while in Landscape Mode
Hi,My app has been rejected three times now for this stupid problem that shouldnt be and I was wondering if anyone else has this problem with SwiftUI.I rewrote an app, and it works in Portriate Mode. But when I make it into Landscape, the display disappers. The app displays a normal List view with options and includes a Navigation Link.When a user selects an option and goes into the detail view, the same thing happens.This problem is on the simulator AND an external device (iPhone XS Max and an 2018 iPad Pro).Any ideas?Thanks,Dan Uff
2
0
1.4k
Dec ’19
Using WebKit Delegates
Hi,How would I go about using the standard WebKit delegates in SwiftUI, such as:func webView(_ webView: WKWebView, didCommit navigation: WKNavigation!) { activityView?.startAnimating() self.title = "Loading...." }Here's what I have so far:import SwiftUI import UIKit import Foundation import WebKit struct Support: View { var body: some View { NavigationView { VStack { WebView(request: URLRequest(url: URL(string: "https://www.connectingpeoplesoftware.com/iossupport")!)) }.navigationBarTitle(Text("Support")) } } struct WebView: UIViewRepresentable { let request: URLRequest func makeUIView(context: Context) -> WKWebView { return WKWebView() } func updateUIView(_ uiView: WKWebView, context: Context) { uiView.load(request) } } struct Support_Previews: PreviewProvider { static var previews: some View { Support() } } }Thanks in advance,Dan
3
0
6.4k
Dec ’19