dot based on height not width

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2023-06-20 15:12:06 -05:00
parent bf709c4f5c
commit 4f42d5a461

View File

@ -368,7 +368,7 @@ open class BadgeIndicator: View {
let frame = badgeView.frame
//default calculation if a dotSize isn't given
var dot: CGFloat = frame.width * 0.1875
var dot: CGFloat = frame.height * 0.1875
if let dotSize, dotSize < frame.width, dotSize < frame.height {
dot = dotSize
}