added trailing text
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
f6b01ac2a4
commit
2b82f4a90c
@ -165,7 +165,10 @@ open class BadgeIndicator: View {
|
||||
|
||||
/// Character that is always at the begging. Accepts any character and if unaffected by maximumDigits.
|
||||
open var leadingCharacter: String? { didSet { setNeedsUpdate() }}
|
||||
|
||||
|
||||
/// Accepts any text or character. It is unaffected by maximumDigits.
|
||||
open var trailingText: String? { didSet { setNeedsUpdate() }}
|
||||
|
||||
/// Determines the size of the Badge Indicator as well as the textStyle and padding used.
|
||||
open var size: Size = .xxlarge { didSet { setNeedsUpdate() }}
|
||||
|
||||
@ -368,6 +371,9 @@ open class BadgeIndicator: View {
|
||||
text = "\(text)+"
|
||||
}
|
||||
|
||||
if let trailingText {
|
||||
text = "\(text) \(trailingText)"
|
||||
}
|
||||
}
|
||||
return text
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user