This package integrates a UIImagePickerController into a SwiftUI app. Obtain 1) a copy of the original image, 2) a scaled and / or cropped version of it, 3) a CGFloat and 4) CGPoint. The CGFloat and CGPoint represent the scale and position of the original image used to make the processed version.
MIT License
101
stars
21
forks
source link
I added support for camera and optional square crop #5
I modifed your package to support a second button for camera picking and optional square cropping. ImagePane just has an additonal parameter "squareShape: Bool" to toggle between circle and square.
If you're interested, I can upload the patched code here ... or tell me how else to contact you.
I modifed your package to support a second button for camera picking and optional square cropping. ImagePane just has an additonal parameter "squareShape: Bool" to toggle between circle and square.
If you're interested, I can upload the patched code here ... or tell me how else to contact you.