SwiftUI code is working in iphone but blank screen in ipad?

Add this modifier to the NavigationView it should work:

NavigationView {

}.navigationViewStyle(StackNavigationViewStyle())

The screen is probably blank because nothing has been selected and there is nothing in the details view so you're seeing a blank details view. If you swipe in from the left side of the screen, the hidden master view will slide over and you can select an item to view the details in the main view.

I hope this is a SwiftUI bug (at at least a missing features) because I don't think anyone wants split views to work like this.