https://github.com/dmytro-anokhin/shapeedit
Vector editor to showcase advanced scroll view and SwiftUI
https://github.com/dmytro-anokhin/shapeedit
swiftui
Last synced: about 2 months ago
JSON representation
Vector editor to showcase advanced scroll view and SwiftUI
- Host: GitHub
- URL: https://github.com/dmytro-anokhin/shapeedit
- Owner: dmytro-anokhin
- Created: 2021-07-22T19:18:51.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-19T05:12:03.000Z (almost 4 years ago)
- Last Synced: 2025-03-26T21:45:55.304Z (2 months ago)
- Topics: swiftui
- Language: Swift
- Homepage:
- Size: 104 KB
- Stars: 75
- Watchers: 2
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ShapeEdit
ShapeEdit is a showcase for [Advanced ScrollView](https://github.com/dmytro-anokhin/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.
