Diagram Library for iOS: Getting Started
A brief guide on how to set up a project and add the diagram library in Xcode.
Add and Link the Diagramming Framework
In order to integrate Diagramming.xcframework into your project, select Xcode’s File -> Add Packages menu command. Enter https://github.com/MindFusionSoftware/SwiftDiagram in the search field, select SwiftDiagram and click Add Package.
In the Choose Package Products dialog, make sure the Diagramming Library is selected, and click Add Package.
Open the storyboard where you want to add DiagramView. Click the + button on top-right to open the Object Library. Type UIView in the search field and drag the View item to the storyboard scene.
In Identity Inspector, enter DiagramView as Class name, and Diagramming as Module name.
Select the Editor -> Assistant menu command, and Ctrl+drag the DigramView instance to the ViewController swift file to create a referencing outlet. Add an “import Diagramming” clause to the top of the swift file.
The application can now build diagrams programmatically, or let users draw ones interactively.