-
Notifications
You must be signed in to change notification settings - Fork 106
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
different shape and arrow #14
Comments
Hi @Rufy86, thanks for the questions.
Sorry, could you specify what you mean by the arrow? Do you want the badge to have the arrow shape, or do you want to place a smaller arrow inside an oval-shaped badge?
Currently one can alter the shape of the badge by changing the |
@evgenyneu thanks the answer
for example, if you see this project, MLPAccessoryBadge, this badge has different shape and some of these have an arrow. some arrow is attached to badge, also has some space. in this project the different badges are already made and the user has only choose the shape to use. it's possible make the same thing? I'm using your badge in a table view, but I can't insert the disclosure indicator, because insert the badge in the accessoryView. if the badge has the disclosure indicator build-in , it's better. or I think. what do you think about? |
MLPAccessoryBadge is a very nice badge indeed, thanks for the suggestion. I have added it to the list of recommended libraries. I think this variable shape feature is very nice. It is not currently possible with this library, as you already know. To be honest, I don't think it is worth adding it to this library, since there is already MLPAccessoryBadge that is doing it very well. I would rather keep this library simple, so it is a "does one thing and does it well" kind of thing. :) |
@evgenyneu thank you for the answer,
it's a great think way, but the problems of MLPAccessoryBadge are: 1) it isn't update since 4 years; 2) is written in Objective-C. your badge is written in swift and could have big potential. however, you can add at least the arrow like disclosure indicator? |
Yeah, it is a good idea, I agree. However, I don't know any simple way of adding an arrow or the disclosure indicator to this library. This library is just a very simple subclass of a Label that draws an oval in its background. Is there an easy way of drawing an arrow or a disclosure indicator without sacrificing the simplicity? |
I'll try to search about it. but I think that the answer could be also in MPLAccessoryBadge. but I've found something in internet: http://swiftiostutorials.com/tutorial-draw-nice-triangle-view-border-cashapelayer/ |
Hi @Rufy86, thanks for the research! Feel free to implement this in the library if you want. I will merge it if it is a simple solution that does not involve a lot of code lines. |
@evgenyneu think that he is speaking about the "disclosure" arrow that tableviews come with. @Rufy86 all you need to do is enable "disclosure" arrows in storyboard and then proceed to add the badge :) |
it's possible to add and arrow like disclosure indicator to the badge? And it's possible have different shape?
The text was updated successfully, but these errors were encountered: