Why setting .navigationViewStyle(StackNavigationViewStyle())breaks ColorPicker? This is happening only on a device (works on simulator).
Run the app (tested on device running iOS 14.0 and 14.0.0)
Navigate to child view
Press on color picker button (color sheet will be presented)
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.
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") }) } }