A Swift library for adding animated marching ants selection borders to images in iOS apps.
JMCMarchingAnts is a Swift library for iOS that adds animated marching ants selection borders to images. It solves the problem of visually indicating selected areas in image views with the classic moving dashed line animation commonly seen in graphics software.
iOS developers building applications that require image selection functionality, particularly those creating image editors, photo apps, or any UI where visual selection feedback is needed.
Developers choose JMCMarchingAnts because it provides a focused, lightweight solution for a specific visual effect without requiring complex graphics code or external dependencies.
Example of adding marching ants selection to the edges of the image.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Just copy the JMCMarchingAnts.swift file into your project, making setup trivial with no external dependencies or complex configuration.
Offers straightforward methods like `addAnts(image:imageView:)` for quick implementation without a steep learning curve, as shown in the usage example.
Designed to work seamlessly with UIImage and UIImageView, fitting naturally into standard iOS UIKit projects without compatibility issues.
Provides a specific, well-executed marching ants animation for image selections, avoiding feature bloat and keeping the library lightweight.
The README doesn't expose parameters to adjust animation speed, dash style, or border color, restricting visual flexibility for diverse design needs.
Built exclusively for UIKit, requiring bridging via UIViewRepresentable for SwiftUI projects, which adds complexity and may not feel native.
Licensed under GNU GPL V3, which can impose restrictions on use in proprietary or closed-source applications, limiting adoption in some commercial settings.