Posts

Post not yet marked as solved
1 Replies
806 Views
I have List inside a TabView. If you tap an item in the list, the item will be highlighted and you will be navigated to destination by NavigationLink. The strange behavior is that when you get back to previous screen, the item you tapped is still highlighted. It occurs only in TabView with .tabViewStyle(PageTabViewStyle()) How can reset highlighting on the item? Xcode: 12.0 struct ContentView: View {   @State private var selectedIndex = 0       var body: some View {     NavigationView {       TabView(selection: $selectedIndex) {         List {           ForEach(0..<100, id: \.self) { row in             NavigationLink(               destination: Text("Row \(row)"),               label: {                 Text("Row \(row)")               }             )           }         }         .tag(0)       }       .tabViewStyle(PageTabViewStyle())       .navigationBarTitle("List")     }   } }
Posted Last updated
.
Post not yet marked as solved
0 Replies
198 Views
I would like to know if we can get user's email multiple times with REST API. With AuthenticationServices framework (which is iOS SDK) or Sign in with Apple JS API(which is for web), we have only first login where we can get email, and subsequent login does not response it. This behavior is described in apple documentation so it is OK. On the other hand, with REST API, from my some experiments, login requests to "auth/token" end point with "grant type=authorization code" responds email in JWT payload even after first login. I could not find about it in the documentations. What I would like know is that anybody can reproduce it? And can I use REST API for getting user's email even after first login? Thank you.
Posted Last updated
.