A UIView subclass that bends its edges during position change animations, creating a fluid visual effect.
AHKBendableView is a custom iOS UIView subclass that bends its edges when its position or size changes during animations. It solves the problem of creating fluid, visually engaging interface feedback by dynamically adjusting a CAShapeLayer's path to simulate bending while keeping subviews intact.
iOS developers building apps with custom animations and visual effects, particularly those wanting to add subtle physics-based feedback to view transitions.
Developers choose AHKBendableView for its simple API that adds sophisticated bending effects with minimal code, independent control over bending parameters, and seamless integration with standard UIView animations.
UIView subclass that bends its edges when its position changes.
Uses CAShapeLayer to dynamically adjust the view's path during animations, creating a unique bending effect as demonstrated in the demo GIF and blog posts.
Offers damping and initialSpringVelocity properties to fine-tune bending independently from the main animation, with example code showing how to set them for optimal effect.
Keeps subviews intact while the background layer bends, ensuring content stability during animations, as highlighted in the README's description.
With only three public properties and compatibility with standard UIView animations, it's easy to add bending effects with minimal code, as shown in the usage example.
Designed solely for UIKit and not natively compatible with SwiftUI, making it less suitable for modern iOS projects adopting declarative UI frameworks.
Dynamic CAShapeLayer path manipulation during animations can add computational cost, potentially affecting performance on older devices or in complex scenes.
Last updated in 2014 with no recent activity, it may not be optimized for recent iOS versions or Swift updates, risking compatibility issues.
An iOS library to natively render After Effects vector animations
ViewAnimator brings your UI to life with just one line
A UICollectionViewLayout subclass that adds custom transitions/animations to the UICollectionView without effecting your existing code.
Physics-based animations for iOS, tvOS, and macOS.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.