I am considering converting my app to SwiftUI
My app receive data via bluetooth every second in my BluetoothManager. This data is then send via protocol - delegate to another object that do math and other modification to those data. From there different data are send via protocol or notification to others object to be save to file, other to be send to CoreData , and some to be displayed
So lot's of data move but rarely to be displayed.
Because most of this transfert is between object and rarely view, I wonder which one is better EnvironmentObject or via Protocol and/or notification
I did look briefly at combine, and I am not sure if I would be able to use that in that case.
My app receive data via bluetooth every second in my BluetoothManager. This data is then send via protocol - delegate to another object that do math and other modification to those data. From there different data are send via protocol or notification to others object to be save to file, other to be send to CoreData , and some to be displayed
So lot's of data move but rarely to be displayed.
Because most of this transfert is between object and rarely view, I wonder which one is better EnvironmentObject or via Protocol and/or notification
I did look briefly at combine, and I am not sure if I would be able to use that in that case.