swift-badge icon indicating copy to clipboard operation
swift-badge copied to clipboard

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

Open Return-1 opened this issue 6 years ago • 2 comments

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.

Return-1 avatar Sep 11 '17 08:09 Return-1

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.

evgenyneu avatar Sep 15 '17 22:09 evgenyneu

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

Return-1 avatar Sep 18 '17 07:09 Return-1