Skip to content

Vector editor to showcase advanced scroll view and SwiftUI

Notifications You must be signed in to change notification settings

dmytro-anokhin/ShapeEdit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ShapeEdit

ShapeEdit is a showcase for Advanced ScrollView, inspired by WWDC sample with the same name. ShapeEdit is build in SwiftUI, with exception of the scroll view, that is UIScrollView or NSScrollView under the hood.

ShapeEdit contains some shapes that can be interacted with on a fixed size canvas. You can:

  • Drag shapes around;
  • Resize shapes;
  • Create new shapes;
  • Change fill and stroke color;
  • On macOS scroll view will autoscroll to follow the coursor;
  • Zoom in/out;
  • Delete elements from a context menu.

Note: this is just a prototype, it's not optimized for performance in any way and should be considered as a case study if you want to build something similar. You need Xcode 13 to run it. I developed it mainly for macOS, some features not working on iOS yet.

ShapeEdit

About

Vector editor to showcase advanced scroll view and SwiftUI

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages