Description
A Swift library for animating labels and text fields using one line of code.
The library uses similar syntax to UIView's animate methods. It works even if there is text mixed in with numbers in the same label. The text remains intact while the digits get animated!
It works on both UILabels and UITextFields, and accepts any Numeric value (no need to type cast or convert). A completion handler lets you safely queue-up actions following the animation.
You can optionally specify animation curves and decimal points for the label.
It is completely safe to destroy or deallocate your label mid-animation, no strong reference is kept. The library is unit tested and checked for memory leaks
QuickTicker alternatives and similar libraries
Based on the "Animation" category.
Alternatively, view QuickTicker alternatives based on common mentions on social networks and blogs.
-
Pop
An extensible iOS and OS X animation library, useful for physics-based interactions. -
Shimmer
An easy way to add a simple, shimmering effect to any view in an iOS app. -
IBAnimatable
Design and prototype customized UI, interaction, navigation, transition and animation for App Store ready Apps in Interface Builder with IBAnimatable. -
Keyframes
A library for converting Adobe AE shape based animations to a data format and play it back on Android and iOS devices. -
JHChainableAnimations
Easy to read and write chainable animations in Objective-C and Swift -
EasyAnimation
A Swift library to take the power of UIView.animateWithDuration(_:, animations:...) to a whole new level - layers, springs, chain-able animations and mixing view and layer animations together! -
RZTransitions
A library of custom iOS View Controller Animations and Interactions. -
DKChainableAnimationKit
⭐ Chainable animations in Swift -
CKWaveCollectionViewTransition
Cool wave like transition between two or more UICollectionView -
LSAnimator
⛓ Easy to Read and Write Multi-chain Animations Lib in Objective-C and Swift. -
Popsicle
Delightful, extensible Swift value interpolation framework -
AnimationEngine
Easily build advanced custom animations on iOS. -
ActivityIndicatorView
A number of preset loading indicators created with SwiftUI -
Awesome-iOS-Animation
Curated list of iOS Animation libraries -
DCAnimationKit
A collection of animations for iOS. Simple, just add water animations. -
ZoomTransitioning
ZoomTransitioning provides a custom transition with image zooming animation and swiping the screen edge. -
FlightAnimator
Advanced Natural Motion Animations, Simple Blocks Based Syntax -
AHKBendableView
UIView subclass that bends its edges when its position changes. -
AHDownloadButton
Customizable download button with progress and transition animations. It is based on Apple's App Store download button. -
MotionMachine
A powerful, elegant, and modular animation library for Swift. -
RippleEffectView
RippleEffectView - A Neat Rippling View Effect -
SamuraiTransition
SamuraiTransition is an open source Swift based library providing a collection of ViewController transitions featuring a number of neat “cutting” animations. -
JRMFloatingAnimation
An Objective-C animation library used to create floating image views. -
CCMRadarView
CCMRadarView uses the IBDesignable tools to make an easy customizable radar view with animation -
ConcentricProgressRingView
Fully customizable circular progress bar written in Swift. -
Walker
Each step you take reveals a new horizon. You have taken the first step today. -
SYBlinkAnimationKit
A blink effect animation framework for iOS, written in Swift. -
ADPuzzleAnimation
Inspired by Fabric - Answers animation. Allows to "build" given view with pieces. Allows to "destroy" given view into pieces
Appwrite - The open-source backend cloud platform
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of QuickTicker or a related project?
README
A Swift library for animating labels and text fields
Installation
Manually:
Simply copy the QuickTicker.Swift file to your project (it is located in QuickTicker > Classes)
Cocoapods:
QuickTicker is also available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'QuickTicker'
Features
- Simple syntax similar to UIView's animate methods
- It works even if there is text mixed in with numbers in the same label. Text remains intact while the digits get animated!
- Works on both UILabels and UITextFields, and accepts any Numeric value (no need to type cast or convert)
- Completion handler lets you safely queue-up actions following the animation
- You can optionally specify animation curves and decimal points for the label
- Completely safe to destroy or deallocate your label mid-animation, no strong reference is kept
- Unit tested and checked for memory leaks
Quick Functions
You can get started with a simple one line function call
QuickTicker.animate(label: textLabel, toEndValue: 250)
The default duration is 2 seconds, but that can be easily changed
QuickTicker.animate(label: textLabel, toEndValue: 250, duration: 4.3)
You can also specify the animation curve
QuickTicker.animate(label: textLabel, toEndValue: 250, options: [.easeOut])
Advanced Quick Ticker
You can optionally specify the duration, the animation curve, decimal points, and add a completion handler to be executed at the end of the animation.
QuickTicker.animate(label: textLabel, toEndValue: 250, duration: 4.3, options: [.easeOut, .decimalPoints(2)], completion: {
print("Ticker animation done!")
})
Compatible Types
Enter any of the following types as the end value for the animation, no need to type cast!
- [x] CGFloat
- [x] Float
- [x] Double
- [x] Int
- [x] UInt
- [x] Int8
- [x] UInt8
- [x] Int16
- [x] UInt16
- [x] Int32
- [x] UInt32
- [x] Int64
- [x] UInt64
What it looks like
Sample App:
Try it!
To run the example project, clone the repo, and launch QuickTicker.xcworkspace from the Example directory.
Requirements
- iOS 9.0+
- Swift 4.2 (you can run it on 4.0 by changing the CADisplayLink api call, one line of code)
- Xcode 10 (same as above to run on older Xcode)
Author
Besher Al Maleh – [email protected]
Distributed under the MIT license. See LICENSE for more information.
https://github.com/almaleh/github-link LinkedIn
Contributing
Contributors are welcome!
- Fork it (https://github.com/almaleh/Quick-Ticker/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request
*Note that all licence references and agreements mentioned in the QuickTicker README section above
are relevant to that project's source code only.