Your code seems to work for me on macos 12.1beta, xcode 13.1,
targets ios 15 and MacCatalyst macos 12. Tested on real devices, iPad and Mac. Here is my test code:
import SwiftUI
@main
struct TestApp: App {
var body: some Scene {
WindowGroup {
ContentView()
}
}
}
struct ContentView: View {
var body: some View {
NavigationView {
List {
NavigationLink(destination: ExploreView()) {
Label("Explore", systemImage: "rectangle.3.group")
}
NavigationLink(destination: Text("ListView")) { // <-- for testing
Label("Devices", systemImage: "list.bullet.below.rectangle")
}
}
.listStyle(.sidebar)
.navigationTitle("Orchard")
ExploreView()
}
}
}
// for testing
struct ExploreView: View {
var body: some View {
ZStack {
Color.pink.ignoresSafeArea()
Label("Devices", systemImage: "list.bullet.below.rectangle").foregroundColor(.white)
}
}
}