Setting navigationViewStyle to StackNavigationViewStyle is breaking ColorPicker

Why setting  .navigationViewStyle(StackNavigationViewStyle())breaks ColorPicker? This is happening only on a device (works on simulator).
  1. Run the app (tested on device running iOS 14.0 and 14.0.0)

  2. Navigate to child view

  3. Press on color picker button (color sheet will be presented)

  4. Try to select any color(-s). onChange is not triggered and state is not being updated. If you dismiss color picker and select color picker again then everything will be working.

If you remove setting navigationViewStyle, everything is working as expected.

Code Block
struct ContentView: View {
var body: some View {
NavigationView {
NavigationLink("Open Child", destination: ChildView())
}
.navigationViewStyle(StackNavigationViewStyle())
}
}
struct ChildView: View {
@State private var selectedCustomColor = Color.purple
var body: some View {
VStack {
ColorPicker("", selection: $selectedCustomColor)
Spacer()
}
.background(selectedCustomColor)
.onChange(of: selectedCustomColor, perform: { value in
print("on change")
})
}
}

Setting navigationViewStyle to StackNavigationViewStyle is breaking ColorPicker
 
 
Q