I have some code (bluetooth manager) that I want to implement as a singleton for the application.
I read many tutorials online about passing environment variable & using observed object to share states, which is useful to pass data from scene delegate to views, like a list of found BT devices. However, how can views talk back to scene delegate?
For example, when the user click I a device, I would like to connect to it which requires the button click calling some method back into scene delegate where the singleton bluetooth manager resides?