iPad navigation is a bit different from iPhone, I can fix this problem by changing the NavigationView to NavigationStack
import SwiftUI
struct ContentView: View {
let l = ["a", "b", "c"]
var body: some View {
NavigationStack {
List {
iPad navigation is a bit different from iPhone, I can fix this problem by changing the NavigationView to NavigationStack
import SwiftUI
struct ContentView: View {
let l = ["a", "b", "c"]
var body: some View {
NavigationStack {
List {