swift-badge
swift-badge copied to clipboard
When the badge becomes small ( eg 20x20 ) , it doesnt properly display double digit numbers.
Please consider submitting the following information (if relevant):
- Library setup method: file, Carthage, CocoaPods or Swift Package Manager.
- Version of the library. Example: 8.0.
- Xcode version. Example: 8.3.3.
- OS version. Example: iOS 10.3.2.
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.
Gothca, i ll try doing that. Thanks for replying 👍