SwiftSpinner
SwiftSpinner copied to clipboard
Long texts
Hi, i really love swiftyspinner and use it alot, there is very little it cannot do that i need.
But i would like it to support longer texts right now the text goes beyond the bounds of the animation circle, it would be nice if it would expand to hold all the text, or if it was possible to remove the circles so that it was possible to use the spinner as to give information on screen.
It sounds as if what you need is simply a label on a vibrant background? It might be simpler to just use a label instead of a spinner
Hi Thank you for your answer.
Yeah you might be right, i was just thinking as the swiftyspinner supports the static circles with text in the middle it kinda already supports this functionality. But it does not handle if the text is to large, so as the functionality is already half implemented i throught i would suggest it. I agree this is not a issue or a bug, its more like a feature request.
But besides my request i think the swiftyspinner handles long text porly by just lettting it go outside the circles, it looks bad, and when building apps with a lot of localization it can be hard to predict how long the texts would be.
a few suggestions on how the spinner could handle longer texts.
- make the circles larger at runtime to fit around the label and all the text
- change font so all text is inside the circles.
- remove circles if text is overlapping the circles.
- use core text to make text fit inside the circles insted of using square label.
I want to point out this is not critisisme its just a suggestion, i really love the swiftspinner its a really awesome module that i love to use, and are going to use alot more in the future :)
Best Regards Morten
Sure, you make a very good point :) SwiftSpinner was designed to show, you know, a single word or so along the lines of Loading... or Connecting... that's why you have issues with "long texts". If you feel like helping refresh the library or just making a pr for "long text", we can talk more :)
I would love to help out in one way or another :)