init(isPresented:onSelect:)
Creates a device picker.
Declaration
@MainActor @preconcurrency init(isPresented: Binding<Bool>, onSelect: @escaping (SpatialPreviewEndpoint) -> Void)Parameters
- isPresented:
A binding to a Boolean that determines whether the picker view is displayed
- onSelect:
When a device is selected the
SpatialPreviewEndpointfor that device will be returned.