Post

Replies

Boosts

Views

Activity

SwiftUI - Split View on iPad problem
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 { &#9;&#9;var body: some View { &#9;&#9;&#9;&#9;NavigationView { &#9;&#9;&#9;&#9;&#9;&#9;ListView() &#9;&#9;&#9;&#9;&#9;&#9;DetailView() &#9;&#9;&#9;}.navigationViewStyle(DoubleColumnNavigationViewStyle()) &#9;&#9;} } struct ContentView_Previews: PreviewProvider { &#9;&#9;static var previews: some View { &#9;&#9;&#9;&#9;ContentView() &#9;&#9;} } struct ListView: View { &#9;&#9;var body: some View { &#9;&#9;&#9;&#9;List(0 ..< 5) { item in &#9;&#9;&#9;&#9;&#9;&#9;NavigationLink(destination: DetailView()) { &#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;Text("List Item") &#9;&#9;&#9;&#9;&#9;&#9;} &#9;&#9;&#9;&#9;} &#9;&#9;&#9;&#9;.navigationTitle("My List") &#9;&#9;} } struct DetailView: View { &#9;&#9;var body: some View { &#9;&#9;&#9;&#9;Text("Hallo") &#9;&#9;} } I tested it with a padding after navigationViewStyle but the List View only displays in landscape mode.
1
0
2.1k
Jul ’20
Sign In with Apple - Your request could not be completed due to an error. Try again later.
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
5
0
9.7k
Jun ’19
Sign In with Apple REST API 403 Forbidden
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?
4
0
5.5k
Jun ’19