Rillieux / PhotoSelectAndCrop

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

Open vigilanz opened 1 year ago

vigilanz commented 1 year ago

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.

Screenshot 2022-11-16 at 10 43 04
chriswitko commented 1 year ago

@vigilanz can you please share your code here as well?

MrCoderithm commented 5 months ago

@vigilanz Do you still have the source code I could use it