- Welcome, Guest. Please Login or Register
MindFusion  
  Version 2 of our Xamarin Calendar component adds Resource view and support for Universal Windows Platform. Now beta testing spreadsheet component for Java Swing. We have released our Java Swing Pack.  
  HomeHelpSearchLoginRegister   
     
     
   
 
Page Index Toggle Pages: 1 Send Topic Print  
preview of diagram library for iOS
Read 5193 times

Stoyo   Offline
YaBB Moderator
*****
Posts: 13230
MindFusion support


   
     
 
preview of diagram library for iOS
Jun 26th, 2015 at 12:43pm
 
We have implemented most of the core MindFusion diagramming API as a Swift 2.0 module. If anyone is interested in trying out a preview build, please download this archive containing the framework file and a simple application project:

http://mindfusion.eu/_beta/SwiftDiagram.zip

The DiagramView control is fully interactive and lets you draw and connect ShapeNode, TableNode, TreeViewNode and ContainerNode objects, based on the value of its Behavior property. The library also includes a NodeListView control that enables drag-and-drop creation of nodes. Features planned for v1.0 release that are not yet implemented are styled text and automatic layout algorithms.

In order to integrate Diagramming.framework into a new Xcode project, add it to Embedded Binaries and Linked Frameworks sections under target's General tab:

...

and Link Binary with Libraries and Embed Frameworks sections on Build Phases tab:

...

In addition, on Build Settings tab enable the Embedded Content Contains Swift Code property and add the Diagramming.Framework path to Framework Search Paths list, possibly using $(SRCROOT) value to find copy in local project folder:

...

In order to add a diagram view to a storyboard screen, create a View object, set its class in identity inspector to DiagramView, and set the type of its controller class to DiagramViewController.

Any comments, questions and general feedback are welcome.
 
 
« Last Edit: Jun 30th, 2015 at 8:00am by Stoyo »
 
IP Logged    
 
     

Forum Admin   Offline
YaBB Administrator
*****
Posts: 488
Gender: male
Rock and Roll


   
     
 
Re: preview of diagram library for iOS
Reply #1 - Jul 30th, 2015 at 3:11pm
 
This new build implements the LayeredLayout algorithm for automatic graph layout:

http://mindfusion.eu/_beta/SwiftDiagram.zip

It can be applied by calling the Diagram.arrange method with a LayeredLayout instance as argument:

Code:
let defBounds = Rect(x: 0, y: 0, width: 20, height: 20)

let factory = dview.diagram.factory

let n1 = factory.createShapeNode(defBounds); n1.text = "1"
let n2 = factory.createShapeNode(defBounds); n2.text = "2"
let n3 = factory.createShapeNode(defBounds); n3.text = "3"
let n4 = factory.createShapeNode(defBounds); n4.text = "4"
let n5 = factory.createShapeNode(defBounds); n5.text = "5"
let n6 = factory.createShapeNode(defBounds); n6.text = "6"

factory.createDiagramLink(n1, destination: n2)
factory.createDiagramLink(n1, destination: n3)
factory.createDiagramLink(n2, destination: n4)
factory.createDiagramLink(n2, destination: n5)
factory.createDiagramLink(n4, destination: n6)
factory.createDiagramLink(n5, destination: n6)
factory.createDiagramLink(n3, destination: n6)
factory.createDiagramLink(n1, destination: n6)

let layout = LayeredLayout()
dview.diagram.arrange(layout) 



...

Enjoy!
 
 
  WWW
IP Logged    
 
     

Forum Admin   Offline
YaBB Administrator
*****
Posts: 488
Gender: male
Rock and Roll


   
     
 
Re: preview of diagram library for iOS
Reply #2 - Sep 7th, 2015 at 2:50pm
 
This new build implements SpringLayout, FractalLayout and TreeLayout algorithms for automatic graph layout:

http://mindfusion.eu/_beta/SwiftDiagram.zip

Code:
func onSpringLayout(sender:UIButton!)
{
    let layout = SpringLayout()
    diagramView.diagram.arrange(layout)
} 



...

Enjoy!
 
 
  WWW
IP Logged    
 
     

Forum Admin   Offline
YaBB Administrator
*****
Posts: 488
Gender: male
Rock and Roll


   
     
 
Re: preview of diagram library for iOS
Reply #3 - Oct 26th, 2015 at 11:52am
 
A new build of the iOS diagram component is now available:
http://mindfusion.eu/_beta/SwiftDiagram.zip

1. The framework has been compiled using final released version of Swift 2.0 compiler.
2. The archive includes initial help reference in HTML format.
3. A built-in context menu allows deleting diagram items and starting in-place edit operations. The menu shows after a long press, and also raises contextMenuCreated event that lets you add custom commands to the menu or remove built-in ones.

Enjoy!
 
 
  WWW
IP Logged    
 
     

Slavcho   Offline
God Member
*****
Posts: 1103
Gender: male
tech.support


   
     
 
Re: preview of diagram library for iOS
Reply #4 - Dec 6th, 2016 at 7:11pm
 
We have rebuilt the framework bundle using Swift 3 compiler  -
http://mindfusion.eu/_beta/SwiftDiagram.zip

ETA for official release is end of December.
 
 
 
IP Logged    
 
     

Slavcho   Offline
God Member
*****
Posts: 1103
Gender: male
tech.support


   
     
 
Re: preview of diagram library for iOS
Reply #5 - Jan 4th, 2017 at 12:23pm
 
We have released v1.0 of the iOS diagram library. Distribution is now available here -
http://mindfusion.eu/SwiftDiagram.zip
 
 
 
IP Logged    
 
     

ato276   Offline
YaBB Newbies
*
Posts: 1
I Love MindFusion!


   
     
 
Re: preview of diagram library for iOS
Reply #6 - Jul 10th, 2017 at 9:43pm
 
Can you update the preview of diagram library for iOS to newest Swift Version?
I have problem with Xcode 8.3.3 when try to compile the library: "Module compiled with Swift 3.0.2 cannot be imported in Swift 3.1"

Thanks!
 
 
 
IP Logged    
 
     

Slavcho   Offline
God Member
*****
Posts: 1103
Gender: male
tech.support


   
     
 
Re: preview of diagram library for iOS
Reply #7 - Jul 11th, 2017 at 8:46am
 
Hi,

We'll try to update it today.

Regards,
Slavcho
Mindfusion
 
 
 
IP Logged    
 
     

Slavcho   Offline
God Member
*****
Posts: 1103
Gender: male
tech.support


   
     
 
Re: preview of diagram library for iOS
Reply #8 - Jul 11th, 2017 at 3:12pm
 
This build has been compiled using Swift 3.1 -
http://mindfusion.eu/SwiftDiagram.zip

Regards,
Slavcho
 
 
 
IP Logged    
 
     
Page Index Toggle Pages: 1 Send Topic Print