Hi! I'm just starting out with making iOS app and I want to publish my first app, but before I pay 99$ for the Apple Developer Program, I want to know if the App Store Review accepts WebKit Websites with the following code:
import SwiftUI
import WebKit
struct view : UIViewRepresentable {
let request: URLRequest
func makeUIView(context: Context) -> WKWebView {
return WKWebView()
}
func updateUIView(_ uiView: WKWebView, context: Context) {
uiView.load(request)
}
}
struct ContentView: View {
var body: some View {
TabView {
view(request: URLRequest(url: URL(string: "https://gnets.myds.me/cloud/gymnazium.pdf")!)).previewLayout(.fixed(width: .infinity, height: .infinity))
.tabItem {
Image("1")
Text("Gymnasium")
}
view(request: URLRequest(url: URL(string: "https://gnets.myds.me/cloud/lyzeum.pdf")!)).previewLayout(.fixed(width: .infinity, height: .infinity))
.tabItem {
Image("2")
Text("Lyzeum")
}
view(request: URLRequest(url: URL(string: "https://gnets.myds.me/stundenplan/nou/")!)).previewLayout(.fixed(width: .infinity, height: .infinity))
.tabItem {
Image("3")
Text("Neuigkeiten")
}
}
}
}
struct ContentView_Previews : PreviewProvider {
static var previews: some View {
ContentView()
}
}
It's been 3 months since I started out with making iOS apps and I finally enrolled in the developer program. My app got accepted altought it was just web bases. Also I discovered that the reviewers don't consider the code of the actual app, but more the content that they see.