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

Fix to properly show badge when use with UIView from .xib + layout in programmatically way #24

Open
wants to merge 2 commits into
base: swift2
Choose a base branch
from

Commits on Apr 25, 2017

  1. Configuration menu
    Copy the full SHA
    d8c169d View commit details
    Browse the repository at this point in the history
  2. Fix positioning and layouting of badge when used in programmatic

    constraint
    
    - note that buttons in demo constructed to work with UIImageView.
      UIButton for logic, and UIImageView to represent button image i.e.
      facebook or twitter logo
    - background color of CustomView and UIView that holds UIButton and
      UIImageView has transparent color thus badges from normal buttons
      can be properly showed
    
    In short, it will work like before and no need to worry about different
    usage. What added is taking care and handle for the case if user
    construct UI element with .xib and in programmatically way with dynamic
    constraint.
    
    See the demo code for example.
    haxpor committed Apr 25, 2017
    Configuration menu
    Copy the full SHA
    abd4e68 View commit details
    Browse the repository at this point in the history