Skip to content

jterry94/SwiftUICorePlotExample

Repository files navigation

SwiftUICorePlotExample

#Example of using CorePlot in SwiftUI

The Core Plot library is not compatible with SwiftUI.

Using the concept of NSViewRepresentable, CorePlot can be integrated in SwiftUI.

For an explanation of the necessary steps to reproduce this see Integration CorePlot in SwiftUI on MacOS.

This code embeds CorePlot within a RepresentedView, either an NSViewRepresentable or a UIViewRepresentable, so it can be displayed using SwiftUI. It is based upon the SwiftUICorePlot- code by Fred Appelman. I would like to thank Fred for all his assistance in getting this code running.

About

This code embeds CorePlot within a RepresentedView so it can be displayed using SwiftUI.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages