added back the + for badge indicator
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
a1e11a67a4
commit
f6b01ac2a4
@ -360,9 +360,14 @@ open class BadgeIndicator: View {
|
|||||||
formatter.numberStyle = .decimal
|
formatter.numberStyle = .decimal
|
||||||
text = formatter.string(from: .init(integerLiteral: maxBadgetCount))!
|
text = formatter.string(from: .init(integerLiteral: maxBadgetCount))!
|
||||||
|
|
||||||
if let leadingCharacter {
|
if let leadingCharacter, !leadingCharacter.isEmpty {
|
||||||
text = "\(leadingCharacter)\(text)"
|
text = "\(leadingCharacter)\(text)"
|
||||||
|
} else if maximumDigits.value < "\(badgeCount)".count {
|
||||||
|
let formatter = NumberFormatter()
|
||||||
|
formatter.numberStyle = .decimal
|
||||||
|
text = "\(text)+"
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
return text
|
return text
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user