Skip to content

Commit

Permalink
Fixed issue from old breadwallet-ios repo(breadwallet/breadwallet-ios…
Browse files Browse the repository at this point in the history
…#197).

The complete text overlaps with the tick icon on transaction details screen.
  • Loading branch information
adriatikgashi committed Nov 7, 2021
1 parent c38cf66 commit 4ea5a54
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions brd-ios/breadwallet/src/ViewModels/TxDetailViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ struct TxDetailViewModel: TxViewModel {
let iconString = NSMutableAttributedString(string: S.Symbols.narrowSpace) // space required before an attachment to apply template color (UIKit bug)
iconString.append(NSAttributedString(attachment: icon))
attributedString.insert(iconString, at: 0)
attributedString.addAttributes([.foregroundColor: UIColor.receivedGreen,
.font: UIFont.customBody(size: 0.0)],
attributedString.addAttributes([.foregroundColor: UIColor.receivedGreen],
range: NSRange(location: 0, length: iconString.length))
return attributedString
} else {
Expand Down

0 comments on commit 4ea5a54

Please sign in to comment.