Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit 2e5796e

Browse files
committed
Show verified badge in collectible header
Add a toolbar principal item to CollectibleScene that displays the collectible title alongside a blue checkmark seal when the collection is verified. Introduce CollectibleViewModel.isVerified computed property (assetData.collection.status == .verified) to drive the UI condition.
1 parent 11b434c commit 2e5796e

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

Features/NFT/Sources/Scenes/CollectibleScene.swift

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,19 @@ public struct CollectibleScene: View {
3434
.environment(\.defaultMinListHeaderHeight, 0)
3535
.listSectionSpacing(.compact)
3636
.navigationTitle(model.title)
37+
.toolbar {
38+
ToolbarItem(placement: .principal) {
39+
HStack(spacing: Spacing.tiny) {
40+
Text(model.title)
41+
.font(.headline)
42+
if model.isVerified {
43+
Images.System.checkmarkSealFill
44+
.font(.footnote)
45+
.foregroundStyle(Colors.blue)
46+
}
47+
}
48+
}
49+
}
3750
.alertSheet($model.isPresentingAlertMessage)
3851
.toast(message: $model.isPresentingToast)
3952
.safariSheet(url: $model.isPresentingTokenExplorerUrl)

Features/NFT/Sources/ViewModels/CollectibleViewModel.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ public final class CollectibleViewModel {
5555
ListItemField(title: Localized.Nft.collection, value: assetData.collection.name)
5656
}
5757

58+
var isVerified: Bool {
59+
assetData.collection.status == .verified
60+
}
61+
5862
var networkField: ListItemField {
5963
ListItemField(title: Localized.Transfer.network, value: assetData.asset.chain.asset.name)
6064
}

0 commit comments

Comments
 (0)