Though application is universal but ipad screen is blank. I have added checked both iphone and ipad. When running app in iphone works fine, but in ipad is not showing anything.
struct UserListView: View {
var userName:String
@State var searchString:String = ""
var body: some View {
VStack {
SearchBar(text: $searchString)
.padding()
.frame(height:44)
.foregroundColor(Color.white)
.background(Color.gray)
List(userList) { user in
NavigationLink(destination:UserDetailView(userObj:user)) {
UserListRow(userObj: user)
}.navigationBarTitle("User Detail")
}
}
}
}