All Projects → felix-dumit → Fsdairportfliplabel

felix-dumit / Fsdairportfliplabel

Licence: mit
UILabel like old Airport flipping labels

Projects that are alternatives of or similar to Fsdairportfliplabel

Chartjs Plugin Datalabels
Chart.js plugin to display labels on data elements
Stars: ✭ 545 (+589.87%)
Mutual labels:  label
Tkswitchercollection
An animation switch collection
Stars: ✭ 877 (+1010.13%)
Mutual labels:  ios-animation
Trescope
Trescope is a comprehensive 3D machine learning development tool devoted to improve developing experience and speed in 3D field, which helps researchers and developers to label, debug, visualize various 3D data
Stars: ✭ 49 (-37.97%)
Mutual labels:  label
Pinterestsegment
A Pinterest-like segment control with masking animation.
Stars: ✭ 560 (+608.86%)
Mutual labels:  ios-animation
Imglab
To speedup and simplify image labeling/ annotation process with multiple supported formats.
Stars: ✭ 723 (+815.19%)
Mutual labels:  label
Lihalert
Advance animated alerts for iOS written in Swift
Stars: ✭ 34 (-56.96%)
Mutual labels:  ios-animation
Lottie Ios
An iOS library to natively render After Effects vector animations
Stars: ✭ 22,295 (+28121.52%)
Mutual labels:  ios-animation
Coco Annotator
✏️ Web-based image segmentation tool for object detection, localization, and keypoints
Stars: ✭ 1,138 (+1340.51%)
Mutual labels:  label
Cariocamenu
The fastest zero-tap iOS menu.
Stars: ✭ 785 (+893.67%)
Mutual labels:  ios-animation
Ybattributetexttapforswfit
一行代码添加文本点击事件(swfit4.2版本)/a fast way to implement click event text(for swfit4.2)
Stars: ✭ 47 (-40.51%)
Mutual labels:  label
Iosproject
iOS project of collected some demos for iOS App, use Objective-C
Stars: ✭ 5,357 (+6681.01%)
Mutual labels:  ios-animation
Txscrolllabelview
🌭TXScrollLabelView, the best way to show & display information such as adverts / boardcast / onsale e.g. with a customView.
Stars: ✭ 714 (+803.8%)
Mutual labels:  label
Cli Badges
Quirky little node-js library for generating badges for your cli apps.
Stars: ✭ 39 (-50.63%)
Mutual labels:  label
Awesome Ios Animation
A curated list of awesome iOS animation, including Objective-C and Swift libraries
Stars: ✭ 4,983 (+6207.59%)
Mutual labels:  ios-animation
Dzhtmltext
Delphi and Lazarus HTML Label component
Stars: ✭ 60 (-24.05%)
Mutual labels:  label
Stacklabel
🔥空祖家的堆叠标签(以下碎念:一开始起名字“StackLabel”没想太多结果被人吐槽Stack是整齐堆叠的意思...........好吧这是我的锅不过现在要改也来不及了,好用就行了...吧?
Stars: ✭ 471 (+496.2%)
Mutual labels:  label
Ruby Gem Downloads Badge
Clean and simple gem downloads count badge, courtesy of http://shields.io/. You can checkout the application directly at the following URL:
Stars: ✭ 29 (-63.29%)
Mutual labels:  label
Loadingshimmer
An easy way to add a shimmering effect to any view with just one line of code. It is useful as an unobtrusive loading indicator.
Stars: ✭ 1,180 (+1393.67%)
Mutual labels:  ios-animation
Blabel
🏷 Python label/sticker PDF generation. HTML templates, built-in barcodes, qr codes, and other goodies
Stars: ✭ 63 (-20.25%)
Mutual labels:  label
Sizeslidebutton
A fun Swift UIControl for picking a size
Stars: ✭ 46 (-41.77%)
Mutual labels:  ios-animation

FSDAirportFlipLabel

Version License Platform

Example

Example

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Since it is a UILabel subclass you can instantiate it from your storyboard or directly from code.

After instantiated, everytime you change the text of the label it will animate the transition.

You can specify blocks to run when the animation starts/finishes:

@property (weak, nonatomic) IBOutlet FSDAirportFlipLabel *airportLabel;

self.airportLabel.startedFlippingLabelsBlock = ^{ NSLog(@"started flipping"); };
self.airportLabel.finishedFlippingLabelsBlock = ^{ NSLog(@"Stopped flipping"); };

You can also customize the duration of each flip that will occur when a label is animating a character change.

CGFloat flipDuration = 0.1f is the base flipDuration CGFloat flipDurationRange = 1.0f is the range used to calculate the random flip duration that will be used. The value will be randomly selected between (flipDuration, (1 + flipDurationRange) * flipDuration )

The same is possible for the number of flips that happen when a change in character is happening: NSInteger numberOfFlips = 10 is the base number of flips CGFloat numberOfFlipsRange = 1.0f is the range used to calculate the random number of flips. The value will be randomly selected between (numberOfFlips, (1 + numberOfFlipsRange) * numberOfFlips )

Additionally you can choose to use the flipping sound or not: self.airportLabel.useSound = YES;

You can also specify the fontSize or a fixed lenght (so the label will always have X number or characters.

self.airportLabel.textSize = 14;
self.airportLabel.fixedLenght = 10; //-1 for variable length

You can customize the background color and text color using the default flipBackGroundColor and flipTextColor properties.

Requirements

Installation

FSDAirportFlipLabel is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "FSDAirportFlipLabel"

Author

Felix Dumit, [email protected]

License

FSDAirportFlipLabel is available under the MIT license. See the LICENSE file for more info.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].