nouun
nouun
TSDThe Swift Den
Created by nouun on 11/20/2022 in #swift-development
Detected view visible.
I'm trying to detect when a view is first made visible so I can connect to a BLE device and then when it is dismissed it is disconnected. I've tried using onAppear/onDisappear and isPresented but they all have the same problem that when I go through a NavigationLink to a child view, it called onDisappear or sets isPresented to false.
3 replies