{"repo":"guoyingtao/Mantis","free":true,"listed":false,"github":"https://github.com/guoyingtao/Mantis","clone":"git clone https://github.com/guoyingtao/Mantis.git","description":"An iOS image cropping library for UIKit and SwiftUI, mimicking the Photos app — crop shapes, rotation, flip, perspective correction, undo/redo. iOS & Mac Catalyst.","language":"Swift","stars":1198,"topics":["cropping","swift","crop","image-cropper","image-crop","image-cropping","ios","swiftui","cropper","crop-image"],"license":"MIT","category":"mobile-apps","readme_excerpt":"Mantis — Image Cropping Library for iOS (Swift · UIKit · SwiftUI) Mantis is an open-source iOS image cropping library written in Swift, with both UIKit and SwiftUI APIs. It gives your app an Apple Photos–style photo crop and edit experience: crop with rotation , flip , free or fixed aspect ratios , rich crop shapes (circle, ellipse, rounded rectangle, polygon, heart, arbitrary paths), perspective correction (skew) , and full undo/redo — on iOS and Mac Catalyst. Features - ✂️ Photos-app-style cropping UI — pan, zoom, resize the crop box, rotate 90°, flip, and straighten with a rotation dial or slide dial - 🖼 Free or fixed aspect ratios — built-in presets (original, square, 16:9, …) plus your own custom ratios - 🟣 Rich crop shapes — rectangle, square, circle, ellipse, rounded rectangle, diamond, polygon, heart, or any custom path (with optional mask-only mode) - 📐 Perspective correction (skew) — Apple Photos–style vertical/horizontal perspective adjustment with real-time 3D preview - ↩️ Undo / Redo / Revert to original — independent history per cropper, with localized Mac Catalyst menus - 🧩 Two SwiftUI APIs — a modern declarative ImageCropper view with modifiers and an observable CropSession , plus a binding-based ImageCropperView - 💾 Persist and restore crops — CropInfo is Codable (3.1+); re-crop the original image offline in a later session, or reopen the editor at the saved state - 🌗 Light / dark / system appearance modes - 🌍 Localized into 14 languages (Arabic, Chine","default_branch":null,"files":null,"tree":[],"storefront":"/r/guoyingtao","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/guoyingtao/Mantis/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}