overboming / zcanimatedlabel Goto Github PK
View Code? Open in Web Editor NEWUILabel replacement with fine-grain appear/disappear animation
License: MIT License
UILabel replacement with fine-grain appear/disappear animation
License: MIT License
I am using auto-layout so I need to set the box size before or at same time the text is set. Size to fit is not working for me, I don't know why.
Because I am using NSAttributedText and oficial apple methods to get the proper size are not working always as expected, after researching I found this works great.
Feel free to consider adding this to get the proper text size at setText time.
CTFramesetterRef framesetter = CTFramesetterCreateWithAttributedString((__bridge CFAttributedStringRef)attributedString);
CGSize targetSize = CGSizeMake(320, CGFLOAT_MAX);
CGSize fitSize = CTFramesetterSuggestFrameSizeWithConstraints(framesetter, CFRangeMake(0, [attributedString length]),NULL, targetSize, NULL);
CFRelease(framesetter);
NSAttributed text cut-off badly when Disappearing the animation. Like:
I have write a Attribute text "yourself" with text size 72 with font name "Empire Crown Condensed" and struck size 2. While disappearing the animation with "ZCShapeshiftLabel" the text is cutting off.
Another example is I did write the text: "The fact that you have a great way to keep it real by yourself " with font size more then 60 and font name "Ethnocentric". I am showing text 2 words at a time and it cuts off very badly with "ZCShapeshiftLabel" and "ZCDuangLabel" animation while Disappearing the text.
Thanks.
Update as well the gifs.
Hi,
I can't make font prop work. Any idea? The text doesn't show.
Thanks
Really thanks for sharing this .
But when I use Podfile to access this , my textColor is always black.
Then I download it from github and copy lib to my project , my textColor change finally T_T
Is there anything special to enable the default appear animation with UIlabel from storyboard IBoutlet ?
When adding text in right to left languages (Like Hebrew) the text not showing at all.
There is any solution?
when use NSMutableAttributedString setting text font with fontWithName:@"ChalkboardSE-Bold", text show lost character!
eg: text = @"我是**人,ColorPlay 是Apple 的 MVC"
maybe show @"我是**人,Co o ay 是Apple 的 V "
Hello, i decided to try this library which looked really awesome.
I m working on swift 3, setted up a bridge , and imported all the h files on it
I created label programatically, but i was not able to change the text of it.
.text or .attributedString, neither of 2 label properties worked
I understand this project is probably deprecated, but anyway this looks the only library which supports multi line labels, so i would really like to see it working.
Thank you for attention
Hey,
Can you please update the pod specs so that it downloads the latest version?
Thanks
It would be cool to add the installation guide in your README.md
. You can take a look at my iOS Readme Template to see how you can do it.
Let me know if you need any help 😉
minimumScaleFactor implementation will be very useful also like in UILabel.
Do you think you can plan this to implement?
I am trying to set Emojis but its not showing.
I'm using ZCTransparencyLabel
in my application, but apparently disappearance animation has some kind of bug since it just stops working in the middle of animation, then stuck for a moment and disappear completely.
I wish somebody could look into that.
if i want to lay the text at center, how to set the ZCAnimatedLabel ?
After setting an attributed string of some lines, and calling the start disappearance, it does not do anything, or in some cases it suddenly disappears without animation.
How can I get the same start appearance animation but for the out / aka make start disappearance work :) ?
Thanks! Awesome pod
When using other font, some letter's doesn't show.when using ZCLayoutGroupChar, or some words dont show when using ZCLayoutGroupWord.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.