From 4ea5a542cf02ff6c2c1cb3239ef383333c94559d Mon Sep 17 00:00:00 2001 From: Adriatik Gashi Date: Sun, 7 Nov 2021 02:55:40 +0100 Subject: [PATCH] Fixed issue from old breadwallet-ios repo(https://github.com/breadwallet/breadwallet-ios/issues/197). The complete text overlaps with the tick icon on transaction details screen. --- brd-ios/breadwallet/src/ViewModels/TxDetailViewModel.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/brd-ios/breadwallet/src/ViewModels/TxDetailViewModel.swift b/brd-ios/breadwallet/src/ViewModels/TxDetailViewModel.swift index f32aa93f8..09ba23bd7 100644 --- a/brd-ios/breadwallet/src/ViewModels/TxDetailViewModel.swift +++ b/brd-ios/breadwallet/src/ViewModels/TxDetailViewModel.swift @@ -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 {