Skip to content

Commit

Permalink
Bump to 1.3.114
Browse files Browse the repository at this point in the history
  • Loading branch information
gemcoder21 committed Jan 29, 2025
1 parent 4612b6f commit 8a43f3c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 17 deletions.
15 changes: 8 additions & 7 deletions Features/NFT/Sources/Scenes/NFTDetailsScene.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,9 @@ public struct NFTDetailsScene: View {
.listRowInsets(EdgeInsets())

Section {
ListItemImageView(
ListItemView(
title: model.collectionTitle,
subtitle: model.collectionText,
assetImage: model.collectionAssetImage
subtitle: model.collectionText
)

ListItemImageView(
Expand All @@ -48,10 +47,12 @@ public struct NFTDetailsScene: View {
assetImage: model.networkAssetImage
)

ListItemView(title: model.contractTitle, subtitle: model.contractText)
.contextMenu {
ContextMenuCopy(value: model.contractValue)
}
if model.showContract {
ListItemView(title: model.contractTitle, subtitle: model.contractText)
.contextMenu {
ContextMenuCopy(value: model.contractValue)
}
}
ListItemView(title: model.tokenIdTitle, subtitle: model.tokenIdText)
}

Expand Down
16 changes: 8 additions & 8 deletions Features/NFT/Sources/ViewModels/NFTDetailsViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,6 @@ public struct NFTDetailsViewModel {
assetData.collection.name
}

public var collectionAssetImage: AssetImage {
AssetImage(
imageURL: URL(string: assetData.collection.image.previewImageUrl),
placeholder: .none,
chainPlaceholder: .none
)
}

public var networkTitle: String {
Localized.Transfer.network
}
Expand All @@ -63,6 +55,10 @@ public struct NFTDetailsViewModel {
)
}

public var showContract: Bool {
assetData.collection.contractAddress != assetData.asset.tokenId
}

public var contractText: String {
AddressFormatter(address: contractValue, chain: assetData.asset.chain).value()
}
Expand All @@ -82,6 +78,10 @@ public struct NFTDetailsViewModel {
return "#\(assetData.asset.tokenId)"
}

public var tokenIdValue: String {
assetData.asset.tokenId
}

public var attributesTitle: String {
Localized.Nft.properties
}
Expand Down
4 changes: 2 additions & 2 deletions Gem.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1788,7 +1788,7 @@
LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks";
"LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 12.0;
MARKETING_VERSION = 1.3.113;
MARKETING_VERSION = 1.3.114;
OTHER_LDFLAGS = "";
PRODUCT_BUNDLE_IDENTIFIER = com.gemwallet.ios;
"PRODUCT_BUNDLE_IDENTIFIER[sdk=iphoneos*]" = com.gemwallet.ios;
Expand Down Expand Up @@ -1839,7 +1839,7 @@
LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks";
"LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 12.0;
MARKETING_VERSION = 1.3.113;
MARKETING_VERSION = 1.3.114;
OTHER_LDFLAGS = "";
PRODUCT_BUNDLE_IDENTIFIER = com.gemwallet.ios;
"PRODUCT_BUNDLE_IDENTIFIER[sdk=iphoneos*]" = com.gemwallet.ios;
Expand Down

0 comments on commit 8a43f3c

Please sign in to comment.