Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. iOS
  3. AHKBendableView

AHKBendableView

MITSwift

A UIView subclass that bends its edges during position change animations, creating a fluid visual effect.

Visit WebsiteGitHubGitHub
593 stars30 forks0 contributors

What is AHKBendableView?

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.

Target Audience

iOS developers building apps with custom animations and visual effects, particularly those wanting to add subtle physics-based feedback to view transitions.

Value Proposition

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.

Overview

UIView subclass that bends its edges when its position changes.

Use Cases

Best For

  • Adding subtle physics-based feedback to modal transitions
  • Creating fluid action sheet animations like Skype's interface
  • Enhancing view movement animations with edge deformation effects
  • Building custom alert dialogs with unique visual feedback
  • Implementing draggable UI elements with bending visual cues
  • Adding playful animation effects to onboarding screens

Not Ideal For

  • Apps built with SwiftUI requiring native animation effects without UIKit dependencies
  • Performance-critical applications like games or heavy UI lists where animation overhead must be minimal
  • Teams wanting drop-in animated components with pre-built interactions and gestures

Pros & Cons

Pros

Edge Bending Animation

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.

Customizable Spring Parameters

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.

Subview Integrity

Keeps subviews intact while the background layer bends, ensuring content stability during animations, as highlighted in the README's description.

Simple Integration

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.

Cons

UIKit-Only Limitation

Designed solely for UIKit and not natively compatible with SwiftUI, making it less suitable for modern iOS projects adopting declarative UI frameworks.

Performance Overhead

Dynamic CAShapeLayer path manipulation during animations can add computational cost, potentially affecting performance on older devices or in complex scenes.

Outdated Maintenance

Last updated in 2014 with no recent activity, it may not be optimized for recent iOS versions or Swift updates, risking compatibility issues.

Frequently Asked Questions

Quick Stats

Stars593
Forks30
Contributors0
Open Issues0
Last commit4 years ago
CreatedSince 2014

Tags

#spring-animation#objective-c#ui-effects#core-animation#ios-animation#cocoapods#swift#ios-ui

Built With

C
Core Animation
C
CAShapeLayer
U
UIKit
i
iOS
O
Objective-C
C
CocoaPods
S
Swift

Links & Resources

Website

Included in

iOS51.7k
Auto-fetched 21 hours ago

Related Projects

LottieLottie

An iOS library to natively render After Effects vector animations

Stars26,754
Forks3,833
Last commit7 days ago
ViewAnimatorViewAnimator

ViewAnimator brings your UI to life with just one line

Stars7,328
Forks488
Last commit2 years ago
AnimatedCollectionViewLayoutAnimatedCollectionViewLayout

A UICollectionViewLayout subclass that adds custom transitions/animations to the UICollectionView without effecting your existing code.

Stars4,862
Forks347
Last commit5 years ago
AdvanceAdvance

Physics-based animations for iOS, tvOS, and macOS.

Stars4,473
Forks204
Last commit4 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub