Post

Replies

Boosts

Views

Activity

Reply to App Store Connect requires invited users to not have apple id
The problematic account had been used in another organization as a tester. After removing it from there, I could successfully add it to my organization. This solves it for me, I guess, but the issue is still valid: the error message is misleading it should be possible to add an Apple ID to multiple organizations @robnotyou it is an Apple ID, but that should not be an issue. I'm adding existing Apple ID's without any problems, usually (and I don't think it would be wise from Apple to prohibit that).
Nov ’21
Reply to Unable to present. Please file a bug.
I had the same issue. Whenever the state of the ParentView is updated by some published property it messed up the navigation to the ChildView. E.g. LibraryView which can open BookViews and also download new books. During the download, the state is constantly updated (progress bar going 0-100). So whenever a book was downloading (continuous state updates of LibraryView), the NavigationLink messed up the navigation to BookView in one of two ways: popped the BookView from backstack immediately (like in https://developer.apple.com/forums/thread/677333) - this happened when I used just one NavigationLink and just changed its destination param depending on the current book. Yelled "Unable to present. Please file a bug." and caused the BookView to not properly register for its state changes on @Published viewmodel properties (so it was always stuck in "loading" state). - this happened when the NavigationLinks have been created inside ForEach. The solution I used was to delegate the navigation to the viewmodel and stop listening to state changes there (cancel the Combine Publisher). Something like this:     func navigateToBook(bookId: Int) {         destinationBook = BookView(viewModel: createBookViewModel(bookId: Int(bookId))) cancellables.forEach { $0.cancel() }         isBookPresented = true     } I honestly have no idea how to tie the lifecycle of viewModels to the lifecycle of SwiftUI views right now - NavigationLinks don't seem to be able to help, the onAppear / onDisappear are interleaved (i.e. the onAppear of ChildView will fire before onDisappear of ParentView). It's a mess.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’21