# guoyingtao/Mantis

An iOS image cropping library for UIKit and SwiftUI, mimicking the Photos app — crop shapes, rotation, flip, perspective correction, undo/redo. iOS & Mac Catalyst.

Repository: https://github.com/guoyingtao/Mantis
Canonical: https://ross.abutalabs.com/products/guoyingtao-mantis
Language: Swift
License: MIT
License Family: permissive
Topics: cropping, swift, crop, image-cropper, image-crop, image-cropping, ios, swiftui, cropper, crop-image, mac-catalyst, photo-editing, uikit, avatar, cocoapods, image-editor, image-processing, ios-library, photo-editor, swift-package-manager
Last push: 2026-07-11T23:04:15+00:00

## Health v2 (maintenance only)
Score: 94/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 92, release rhythm 92, longevity 100
- inputs: {"age_days": 2873, "days_push": 53, "days_rel": 55, "gap_med": 22, "n_releases_24m": 20}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1198, forks 247 (observed 2026-08-28T04:03:57.652676+00:00)

## What it is
Mantis is a Swift image cropping library for iOS and Mac Catalyst offering UIKit and SwiftUI APIs with an Apple Photos-style crop experience. It supports rotation, flip, fixed and free aspect ratios, custom crop shapes, perspective correction, and undo/redo.

## Use cases
- crop profile avatars in an iOS app
- add a Photos-style image cropper to SwiftUI
- let users straighten and rotate photos before upload
- apply perspective correction to document photos
- crop images to custom shapes like circles or hearts
- persist crop settings and re-crop later

## When to choose
- you need a native iOS crop UI in UIKit or SwiftUI
- you want aspect ratio presets, rotation, flip, and undo/redo out of the box
- you need custom crop shapes or perspective correction
- you target iOS and Mac Catalyst with localization

## When to avoid
- you need cross-platform (Android or web) cropping
- you need full photo editing beyond cropping, such as filters or adjustments
- your project is not Swift-based

## Facets
- artifact type: library
- maturity: active
- function: image-processing, ui-components
- domain: image-processing, mobile-development
- platform: mac-catalyst
- tags: image-cropping, swiftui, uikit, photo-editing, perspective-correction, cocoapods, swift-package-manager, ios-tools, ios, swift

## Member repositories
- guoyingtao/Mantis (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:57.652676+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:21:09.781811+00:00, confidence not recorded.
  - readme: https://github.com/guoyingtao/Mantis (fetched 2026-08-28T04:03:57.652676+00:00, sha a7285019e603)
- Data as of 2026-08-30T08:39:29.467469+00:00.
