A multi-platform app for creating shapes scaled to a Map Area using pure SwiftUI
.
- Introduction
- Getting Started
- Creating the input view
- Draw Line
- Draw Circle
- Draw Rectangle
- Delete Shapes
- Scaling
We can easily draw shapes by simply giving their position and dimensions. For instance:
- Drawing a
path
simply requires the start position and the end position of the path - Drawing a
circle
requires the center position and the radius of the circle - Drawing a
recatngle
requires drawing 4 paths accordingly.
In this project, we create basic shapes scaled to a map. The shapes will be positioned at a particular position with respect to the map.
Here is a quick preview of the app
Mac
This app is based on MVVM architecture. To set up an MVVM architecture, the project code has been divided into:
- Models
- Views
- ViewModels
The Views and ViewModels are kept together and the models are kept separate for ease of code.