Skip to content

Commit 5c48b52

Browse files
committed
refactor redacted on timestamp
1 parent ab288bc commit 5c48b52

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

BDKSwiftExampleWallet/View/Activity/TransactionItemView.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ struct TransactionItemView: View {
8383
)
8484
)
8585
.lineLimit(dynamicTypeSize.isAccessibilitySize ? 2 : 1)
86+
.redacted(reason: isRedacted ? .placeholder : [])
8687
case .unconfirmed(let timestamp):
8788
if let timestamp {
8889
Text(
@@ -92,14 +93,15 @@ struct TransactionItemView: View {
9293
)
9394
)
9495
.lineLimit(dynamicTypeSize.isAccessibilitySize ? 2 : 1)
96+
.redacted(reason: isRedacted ? .placeholder : [])
9597
} else {
9698
Text("Pending")
9799
.lineLimit(dynamicTypeSize.isAccessibilitySize ? 2 : 1)
100+
.redacted(reason: isRedacted ? .placeholder : [])
98101
}
99102
}
100103

101104
}
102-
.redacted(reason: isRedacted ? .placeholder : [])
103105
.foregroundStyle(.secondary)
104106
.font(.callout)
105107

0 commit comments

Comments
 (0)