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

No animation after any update with short text. #17

Open
pmark opened this issue Feb 2, 2023 · 6 comments
Open

No animation after any update with short text. #17

pmark opened this issue Feb 2, 2023 · 6 comments

Comments

@pmark
Copy link

pmark commented Feb 2, 2023

Steps to reproduce:

  1. Render with long text (GOOD - correctly animates)
  2. Update state with short text (GOOD - correctly does not animate)
  3. Update state with long text (FAIL - incorrectly does not animate)
@KevinLima
Copy link

@pmark did you ever find a solution for this issue?

@sranipa
Copy link

sranipa commented Apr 16, 2024

I am also facing same issue in SwiftUI. Please let me know anyone know solution for this.

@sranipa
Copy link

sranipa commented Apr 16, 2024

@joekndy Please let me know if you have any solution for this. Thanks.

@pmark
Copy link
Author

pmark commented Apr 16, 2024

Here's what that bot thing says: https://chat.openai.com/share/806a8993-2ccf-4ad8-ab72-663b0dcbb5e1

@Rex-xingjl
Copy link

Rex-xingjl commented Apr 16, 2024

@joekndy Please let me know if you have any solution for this. Thanks.

https://github.com/Rex-xingjl/MarqueeText

Hey guys, I think this will help you.

PPMarqueeText(text: "some title",  font: .systemFont(ofSize: 13))
            .foregroundColor(.black)
            .lineLimit(1)
            .frame(maxWidth: .infinity, idealHeight: 20, alignment: .leading)

@myeganeh2876
Copy link

@joekndy Please let me know if you have any solution for this. Thanks.

https://github.com/Rex-xingjl/MarqueeText

Hey guys, I think this will help you.

PPMarqueeText(text: "some title",  font: .systemFont(ofSize: 13))
            .foregroundColor(.black)
            .lineLimit(1)
            .frame(maxWidth: .infinity, idealHeight: 20, alignment: .leading)

I tried your solution but it does not fix the problem

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

5 participants