evgenyneu / swift-badge

A badge view for iOS/tvOS written in Swift
MIT License
392 stars 107 forks source link

When the badge becomes small ( eg 20x20 ) , it doesnt properly display double digit numbers. #15

Open Return-1 opened 6 years ago

Return-1 commented 6 years ago

Please consider submitting the following information (if relevant):

evgenyneu commented 6 years ago

Thanks for reporting. Do you limit the width/height of the badge view in the code to 20x20? If so, this is probably why it misbehaves. The badge view is supposed to set its own width/height based on the font size and width of the border.

Return-1 commented 6 years ago

Gothca, i ll try doing that. Thanks for replying 👍