Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to use Marqueelabel inside App extension #78

Closed
SebastianBoldt opened this issue Sep 23, 2014 · 7 comments
Closed

Not able to use Marqueelabel inside App extension #78

SebastianBoldt opened this issue Sep 23, 2014 · 7 comments

Comments

@SebastianBoldt
Copy link

It is not possible to use Marqueelabel inside an App Extension cause UIApplication is not available.
(labelReadyForScroll)

@vicc
Copy link

vicc commented Oct 7, 2014

Hmm.. I'm getting it to actually show up, with the fade and all, but so far I can't seem to get it to scroll either.

@cbpowell
Copy link
Owner

cbpowell commented Oct 7, 2014

Yeah it should show up, but as @SebastianBoldt points out it won't ever scroll due to the check in labelReadyForScroll that checks if the application is backgrounded. This was added as a fix for high background CPU where the CATransaction completion block just looped infinitely (see PR #69). I'm looking at some other ways to do it - if only CATrasaction's completion block provided a finished argument...

@vicc
Copy link

vicc commented Oct 7, 2014

Thanks @cbpowell I'll be sure to check it out. I'm sure there's a way since I remember seeing the stock notifications widget use scrolling text in iOS 6.

@cbpowell
Copy link
Owner

cbpowell commented Oct 9, 2014

Hopefully release 2.0.6 fixes this issue - I removed the check for UIApplication status, and switched to checking whether or not the animation was allowed to finish. I don't have an in work app extension to try this out on, so let me know if this works for you guys!

@SebastianBoldt
Copy link
Author

The label shows up now, which is awesome, but it does not animate :(. My configuration is simple: I just added the Label to my View-Controller using Storyboards and changed the class to Marqueelabel.

@SebastianBoldt
Copy link
Author

Sorry, my fault. everything works fine now.

@cbpowell
Copy link
Owner

Awesome, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants