- July 11, 2025
- Mins Read
This packages contains SimilarShape
and InterpolatedShape
, both can be used to achieve shapes animations with SwiftUI.
SimilarShape
should be used when animating two or more similar paths. A path is similar to another one when having the same number and types of Path.Element
. I.e.: two rects with different height, width and origin are considered similar, since the two paths are made by the same Path.Element
but with different CGPoint
.
InterpolatedShape
should be used when animating two or more different paths. Internally, it will create a slighlty different path used for animation, by interpolating the original one.
The attached example (Example/Example.xcodeproj) is using:
SimilarShape
to perform the drag animation of the morphing circle 🔵, since the Path
create starting from the original circle and the one create with the dragging point are essentially the sameInterpolatedShape
to perform the animated trasformation from a circle and a rounded rectangle, being very different paths.A SwiftUI View that emits confetti with user-defined shapes, images, and text.
A colour wheel made all in SwiftUI. There are 2 different colour wheels to choose from. The first main one ...
A color picker implementation with color wheel appearance written in plain SwiftUI. It is compatible with UIColor and NSColor.
This repository is no longer maintained. Here's why: with the release of iOS 16 SwiftUI now enables most of the ...