Swiftui real time graph

Hello there,


I would like to ask for a little help. I am working on a macos application for university hand-in, that is capable of drawing real time linegraph. Since the change in the frameworks (I'm already on macos Catalina) I would like to pre_adapt it to swift UI library. I looked at core graphics(seems like not made for the job), core image and alike also not made for simple 2D real time graphs(correct me if I'm wrong). Is it even possible to make a plotting linegraph application for macOs without going down to metal api and such or I should turn to 3rd party libraries?


(I'm a newcomer, please be indulgent)


Thank you for your help in advance, any help is welcome.


Greetings,

Zahovay

Hi,


Maybe I miss something, and I didn't really make graphics for now with SwiftUI, excepted the tutorial, but if you start by doing the SwiftUI tutorial you will see that all the 2 graphics object. are there to do something valuable : https://developer.apple.com/tutorials/swiftui/drawing-paths-and-shapes (a good thing to do the tutorial from thee beginning.


I am not aware of the speed you need to make you real time display of data, but for 2D rendering I think that you have plenty of power available.

Hello,


Thank you for your reply, I tried already the shape and paths tutorial. It looks like not what I would like to create. I would like to create a real time graph with around 60 fps update sequence with new data while the application is open. As of now I see no other option avoiding low level rendering except 3rd party libraries.


Greetings,

Zahovay

Swiftui real time graph
 
 
Q