You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One nice improvement that could be made to this library, is improving the flow in which the badge view gets built / laid out.
For instance, trying to add a badge to a UIButton that is being built using Autolayout and not having a specific frame set, then the badge is placed on the top left corner of the button by default.
Another example is if you set the badge properties before assigning the UIBarButtonItem to the navigationItem.rightBarButtonItem or navigationItem.rightBarButtonItems properties, the superview is nil.
Would be nice to change the logic of the badge to wait until it's superview (UIBarButtonItem or UIButton) has been fully laid out.
The text was updated successfully, but these errors were encountered:
One nice improvement that could be made to this library, is improving the flow in which the badge view gets built / laid out.
For instance, trying to add a badge to a
UIButton
that is being built using Autolayout and not having a specificframe
set, then the badge is placed on the top left corner of the button by default.Another example is if you set the badge properties before assigning the
UIBarButtonItem
to thenavigationItem.rightBarButtonItem
ornavigationItem.rightBarButtonItems
properties, thesuperview
isnil
.Would be nice to change the logic of the badge to wait until it's superview (
UIBarButtonItem
orUIButton
) has been fully laid out.The text was updated successfully, but these errors were encountered: