Mini-Project 3: PicDraw
Table of contents
Project Description
In this project, we will be building our first Swfit app called PicDraw, which allows users to choose any picture from their camera roll, and allow them to draw whatever they’d like around it. Once they have created their masterpiece, they can save/share their image! There are four libraries used -
- Foundation - supports basic functionality
- PhotosUI - allows users to select photos and videos from their photo library
- SwiftUI - Apple’s framework for building declarative user interfaces
- UIKit - traditional UI framework used to develop iOS apps
*As this is your first Swift project, things may seem a bit daunting, but do not get discouraged! Start early ask questions to anyone on teaching staff if you ever get stuck. Work together as well!
App Requirements
This is a relatively simple app. There is only one screen, so your job is to create buttons, define functionality.
- Canvas View - Implement all the buttons for the main view of the app.
- Button that allows user to pick an image
- Button to erase a drawing
- Button to export the image
-
Draggable Image View - Functionality to drag, pinch, and expand an image on the canvas.
- Image Picker - Introduces a user with a new view that allows them to choose an image from their camera roll to use on the canvas.
There are other minor things that you must implement, but the core functionality is listed above.
Starter Code
The starter code is available as a template here
Demo
Submission
To submit your project, simply commit and push your changes to your personal project repository. We encourage you to commit frequently, so it’s easy to revert to a prior commit if needed.
git add .
git commit -m "all features working"
git push origin main
Then upload a video of your submission to Project Submissions.