I have an app which detects smart-hubs on the network, then for each smart-hub, detects devices conneted to the hub, then each device has a number of channels.
The first view shows all the smart-hubs. Tap on one, and it moves to the next view, which shows all the devices. Tap on a device and it shows all the channels for the chosen device. Each channel is a Slider.
When I touch the slider in the channel-view, the navigation immediately pops back one level to the device-view!
(See diagram below)
Any idea what is causing this?
The first view has a binding to an array of Controllers.
@Binding var controllers: [Controller]
It passes a selected controller to the second view
@Binding var controller: Controller,
which passes the selected device to the third view. @Binding var canDevice: CanDevice