Simulator Crash when using List and Picker

Hello,

beginning with Xcode 11.4 I have crashes with the following simple sample code on a Simulator for watchOS. This works fine on a real device, but as you know watchos debugging/development on a real device is an other storry 🙂.

When tapping the "Show Picker" Text the simulator crashes with "Thread 1: signal SIGABRT".


import SwiftUI

struct LandingView: View
{
    var body: some View
    {
        List
        {
            NavigationLink(destination: PickerView())
            {
                Text("Show Picker")
            }
        }
    }
}
   
struct PickerView: View
{
    @State var counter: Int = 0
       
    var body: some View
    {
        Picker(selection: $counter, label: EmptyView())
        {
            ForEach(1...10, id: \.self)
            {
                Text(String($0))
            }
        }
    }
}


When removing the surrounding List{} it works. When replacing the Picker{} with a Text() it also works.

Has something changed with List, NavigationLink or Picker from Xcode 11.3 to Xcode 11.4 that I am missing? Or any suggestions how to fix this?


Thanks Sebastian

Simulator Crash when using List and Picker
 
 
Q