Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

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

TermsPrivacyAboutGitHubRSS
  1. Home
  2. iOS
  3. NumberMorphView

NumberMorphView

MITSwift

A Swift iOS view for displaying numbers with smooth animated transitions using number tweening/morphing.

GitHubGitHub
1.6k stars114 forks0 contributors

What is NumberMorphView?

NumberMorphView is an iOS library that provides a custom UIView for displaying numbers with animated transitions between digits. It solves the problem of creating visually appealing number changes in apps, such as counters, timers, or score displays, by implementing number tweening/morphing techniques.

Target Audience

iOS developers building apps that require animated numeric displays, such as fitness trackers, finance apps, games, or any interface with dynamic numbers.

Value Proposition

Developers choose NumberMorphView for its simplicity, smooth animations out-of-the-box, and flexibility to customize interpolation and duration, avoiding the need to manually implement complex animation logic.

Overview

A label view for displaying numbers which can transition or animate using a technique called number tweening or number morphing.

Use Cases

Best For

  • Animating score counters in games
  • Creating smooth transitions in financial or data dashboard apps
  • Building fitness trackers with animated metrics
  • Implementing countdown timers with visual flair
  • Enhancing numeric displays in educational or utility apps
  • Adding polished animations to iOS UI components

Not Ideal For

  • Apps requiring animations for non-numeric text or formatted strings like currency or dates
  • Projects built with SwiftUI that prioritize native declarative UI over UIKit components
  • Teams needing high-performance animations for rapidly changing numbers in real-time data streams
  • Developers using modern Swift versions (Swift 5+) without legacy support, as it targets Swift 2.2

Pros & Cons

Pros

Smooth Digit Morphing

Implements number tweening for fluid transitions between digits, as shown in the sample GIF with seamless animations from one digit to another.

Customizable Interpolators

Offers multiple built-in interpolators like Spring and Bounce, and allows custom ones via InterpolatorProtocol, enabling varied animation styles without manual keyframing.

Easy Interface Builder Integration

Can be dragged into storyboards and configured with IBOutlet, simplifying visual design workflows for iOS developers.

Programmatic Flexibility

Works with or without Auto Layout using intrinsic content size, making it adaptable to different coding approaches, as demonstrated in the code examples.

Cons

Outdated Swift Version

Targets Swift 2.2, which is obsolete and may require significant migration efforts or cause compatibility issues with modern iOS projects using Swift 5+.

Limited Documentation

The README is brief and lacks examples for advanced scenarios, such as animating multi-digit numbers or handling edge cases like negative values or decimals.

Dependency Overhead

Adds a CocoaPods dependency for a single-purpose component, which might be excessive for apps with minimal animation needs or those avoiding third-party libraries.

Frequently Asked Questions

Quick Stats

Stars1,581
Forks114
Contributors0
Open Issues3
Last commit9 years ago
CreatedSince 2016

Tags

#ios#ui-animation#custom-view#morphing-animation#cocoapods#swift#ios-ui#uikit

Built With

i
iOS
C
CocoaPods
S
Swift

Included in

iOS51.7k
Auto-fetched 1 day ago

Related Projects

TTTAttributedLabelTTTAttributedLabel

A drop-in replacement for UILabel that supports attributes, data detectors, links, and more

Stars8,696
Forks1,691
Last commit2 years ago
LTMorphingLabelLTMorphingLabel

[EXPERIMENTAL] Graceful morphing effects for UILabel written in Swift.

Stars8,135
Forks775
Last commit7 months ago
ActiveLabel.swiftActiveLabel.swift

UILabel drop-in replacement supporting Hashtags (#), Mentions (@) and URLs (http://) written in Swift

Stars4,598
Forks675
Last commit3 years ago
ZCAnimatedLabelZCAnimatedLabel

UILabel replacement with fine-grain appear/disappear animation

Stars2,263
Forks214
Last commit5 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