dot based on height not width
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
bf709c4f5c
commit
4f42d5a461
@ -368,7 +368,7 @@ open class BadgeIndicator: View {
|
|||||||
let frame = badgeView.frame
|
let frame = badgeView.frame
|
||||||
|
|
||||||
//default calculation if a dotSize isn't given
|
//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 {
|
if let dotSize, dotSize < frame.width, dotSize < frame.height {
|
||||||
dot = dotSize
|
dot = dotSize
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user