Photoroom/PhotoRoomKit-Swift ? reverse-engineered prompt

Reverse engineered prompt

Build me a Swift library for iOS that lets an app remove image backgrounds using the PhotoRoom API.

I want it to be easy to drop into an app, with a simple way to either present a built in editor screen for picking an image and getting back the cutout, or call a small API wrapper directly from code. Please include a working example app, basic tests, and the usual packaging so it can be used through CocoaPods and Carthage, plus manual integration if needed.

Keep the public API simple and friendly, handle the network request and error states cleanly, and make sure the user gets the processed image back on completion. If you need to check the latest API details or best practices, look them up online. Also include any attribution or usage notes that are required when using the lower level API directly.

Are you gonna build this?

make sure you review the code using arcumet

Try freeSponsored — opens Arcumet in a new tab