Is there an simple way to use the UISplitViewController with SwiftUI?
Currently I use a NavigationView. The problem is, that the ListView on the left only shows in landscape mode and not in portrait mode.
This is the example of my code:
import SwiftUI
struct ContentView: View {
		var body: some View {
				NavigationView {
						ListView()
						DetailView()
			}.navigationViewStyle(DoubleColumnNavigationViewStyle())
		}
}
struct ContentView_Previews: PreviewProvider {
		static var previews: some View {
				ContentView()
		}
}
struct ListView: View {
		var body: some View {
				List(0 ..< 5) { item in
						NavigationLink(destination: DetailView()) {
								Text("List Item")
						}
				}
				.navigationTitle("My List")
		}
}
struct DetailView: View {
		var body: some View {
				Text("Hallo")
		}
}
I tested it with a padding after navigationViewStyle but the List View only displays in landscape mode.
Post
Replies
Boosts
Views
Activity
Hello,I'm trying to implement Sign In with Apple on my website. Currently I got this error: Your request could not be completed due to an error. Try again later.You can check this here: https://hanashi.dev/apple/I tested it with Apple JS and with the code example from this Git repository: https://github.com/aaronpk/sign-in-with-apple-exampleI don't know what is wrong. Please help.kind regardsPeter
Hello, I would send POST data to the Sign In with Apple REST API, but corrently I got the error 403 Forbidden on my server. If i test it with curl in the terminal, it works.Here is the php code for this:$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://appleid.apple.com/auth/token');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($myArray));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$serverOutput = curl_exec($ch);
if(curl_exec($ch) === false)
{
echo 'Curl error: ' . curl_error($ch);
}
curl_close ($ch);
print_r($serverOutput);I got http code 403 by apple server. What is wrong?