Skip to content

Commit 5de4a89

Browse files
committed
[trello.com/c/vawidi4o] Add UI for Secret Wallets and combine it with service
1 parent 212c7b4 commit 5de4a89

19 files changed

+453
-99
lines changed

Adamant.xcodeproj/project.pbxproj

+28-8
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,13 @@
187187
41CA598C29A0D84F002BFDE4 /* TaskManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 41CA598B29A0D84F002BFDE4 /* TaskManager.swift */; };
188188
41CE153A297FF98200CC9254 /* Web3Swift+Adamant.swift in Sources */ = {isa = PBXBuildFile; fileRef = 41CE1539297FF98200CC9254 /* Web3Swift+Adamant.swift */; };
189189
41E3C9CC2A0E20F500AF0985 /* AdamantCoinTools.swift in Sources */ = {isa = PBXBuildFile; fileRef = 41E3C9CB2A0E20F500AF0985 /* AdamantCoinTools.swift */; };
190+
48023DEF2D72EA7F00852961 /* AccountHeader.xib in Resources */ = {isa = PBXBuildFile; fileRef = 48023DEE2D72EA7F00852961 /* AccountHeader.xib */; };
191+
48023DF12D72FB3500852961 /* SecretWalletsAlertService.swift in Sources */ = {isa = PBXBuildFile; fileRef = 48023DF02D72FB3500852961 /* SecretWalletsAlertService.swift */; };
190192
4803FC9A2D6715AF00452D2C /* SecretWalletsFactory.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4803FC992D6715AF00452D2C /* SecretWalletsFactory.swift */; };
191-
481558702D65A7660011B470 /* SecretWalletsService.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4815586F2D65A7660011B470 /* SecretWalletsService.swift */; };
193+
481558702D65A7660011B470 /* SecretWalletsManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4815586F2D65A7660011B470 /* SecretWalletsManager.swift */; };
192194
481558722D65A7BD0011B470 /* SecretWalletsManagerProtocol.swift in Sources */ = {isa = PBXBuildFile; fileRef = 481558712D65A7BD0011B470 /* SecretWalletsManagerProtocol.swift */; };
195+
482231212D714C3D00D592D8 /* SecretWalletsViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 482231202D714C3D00D592D8 /* SecretWalletsViewModel.swift */; };
196+
488C1E8A2D7150F900E955E8 /* SecretWalletsState.swift in Sources */ = {isa = PBXBuildFile; fileRef = 488C1E892D7150F900E955E8 /* SecretWalletsState.swift */; };
193197
48B6A8EB2D5738D800326EE8 /* WalletsStoreService.swift in Sources */ = {isa = PBXBuildFile; fileRef = 48B6A8EA2D5738D800326EE8 /* WalletsStoreService.swift */; };
194198
48B6A8ED2D57390400326EE8 /* AdamantWalletsStoreService.swift in Sources */ = {isa = PBXBuildFile; fileRef = 48B6A8EC2D57390400326EE8 /* AdamantWalletsStoreService.swift */; };
195199
48B6A8EF2D573A3C00326EE8 /* AdamantWalletStoreServiceProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 48B6A8EE2D573A3C00326EE8 /* AdamantWalletStoreServiceProvider.swift */; };
@@ -607,7 +611,6 @@
607611
E94008872114F05B00CD2D67 /* AddressValidationResult.swift in Sources */ = {isa = PBXBuildFile; fileRef = E94008862114F05B00CD2D67 /* AddressValidationResult.swift */; };
608612
E940088B2114F63000CD2D67 /* NSRegularExpression+adamant.swift in Sources */ = {isa = PBXBuildFile; fileRef = E940088A2114F63000CD2D67 /* NSRegularExpression+adamant.swift */; };
609613
E940088F2119A9E800CD2D67 /* BigInt+Decimal.swift in Sources */ = {isa = PBXBuildFile; fileRef = E940088E2119A9E800CD2D67 /* BigInt+Decimal.swift */; };
610-
E941CCDB20E786D800C96220 /* AccountHeader.xib in Resources */ = {isa = PBXBuildFile; fileRef = E941CCDA20E786D700C96220 /* AccountHeader.xib */; };
611614
E941CCDE20E7B70200C96220 /* WalletCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E941CCDC20E7B70200C96220 /* WalletCollectionViewCell.swift */; };
612615
E941CCDF20E7B70200C96220 /* WalletCollectionViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E941CCDD20E7B70200C96220 /* WalletCollectionViewCell.xib */; };
613616
E9484B79227C617E008E10F0 /* BalanceTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E9484B77227C617D008E10F0 /* BalanceTableViewCell.swift */; };
@@ -919,9 +922,13 @@
919922
41CA598B29A0D84F002BFDE4 /* TaskManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TaskManager.swift; sourceTree = "<group>"; };
920923
41CE1539297FF98200CC9254 /* Web3Swift+Adamant.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Web3Swift+Adamant.swift"; sourceTree = "<group>"; };
921924
41E3C9CB2A0E20F500AF0985 /* AdamantCoinTools.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AdamantCoinTools.swift; sourceTree = "<group>"; };
925+
48023DEE2D72EA7F00852961 /* AccountHeader.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = AccountHeader.xib; sourceTree = "<group>"; };
926+
48023DF02D72FB3500852961 /* SecretWalletsAlertService.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SecretWalletsAlertService.swift; sourceTree = "<group>"; };
922927
4803FC992D6715AF00452D2C /* SecretWalletsFactory.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SecretWalletsFactory.swift; sourceTree = "<group>"; };
923-
4815586F2D65A7660011B470 /* SecretWalletsService.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SecretWalletsService.swift; sourceTree = "<group>"; };
928+
4815586F2D65A7660011B470 /* SecretWalletsManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SecretWalletsManager.swift; sourceTree = "<group>"; };
924929
481558712D65A7BD0011B470 /* SecretWalletsManagerProtocol.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SecretWalletsManagerProtocol.swift; sourceTree = "<group>"; };
930+
482231202D714C3D00D592D8 /* SecretWalletsViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SecretWalletsViewModel.swift; sourceTree = "<group>"; };
931+
488C1E892D7150F900E955E8 /* SecretWalletsState.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SecretWalletsState.swift; sourceTree = "<group>"; };
925932
48B6A8EA2D5738D800326EE8 /* WalletsStoreService.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WalletsStoreService.swift; sourceTree = "<group>"; };
926933
48B6A8EC2D57390400326EE8 /* AdamantWalletsStoreService.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AdamantWalletsStoreService.swift; sourceTree = "<group>"; };
927934
48B6A8EE2D573A3C00326EE8 /* AdamantWalletStoreServiceProvider.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AdamantWalletStoreServiceProvider.swift; sourceTree = "<group>"; };
@@ -1315,7 +1322,6 @@
13151322
E94008862114F05B00CD2D67 /* AddressValidationResult.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AddressValidationResult.swift; sourceTree = "<group>"; };
13161323
E940088A2114F63000CD2D67 /* NSRegularExpression+adamant.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "NSRegularExpression+adamant.swift"; sourceTree = "<group>"; };
13171324
E940088E2119A9E800CD2D67 /* BigInt+Decimal.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "BigInt+Decimal.swift"; sourceTree = "<group>"; };
1318-
E941CCDA20E786D700C96220 /* AccountHeader.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = AccountHeader.xib; sourceTree = "<group>"; };
13191325
E941CCDC20E7B70200C96220 /* WalletCollectionViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WalletCollectionViewCell.swift; sourceTree = "<group>"; };
13201326
E941CCDD20E7B70200C96220 /* WalletCollectionViewCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = WalletCollectionViewCell.xib; sourceTree = "<group>"; };
13211327
E9484B77227C617D008E10F0 /* BalanceTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BalanceTableViewCell.swift; sourceTree = "<group>"; };
@@ -1796,6 +1802,16 @@
17961802
path = RichTransactionReplyService;
17971803
sourceTree = "<group>";
17981804
};
1805+
482231222D714C4400D592D8 /* SecretWallets */ = {
1806+
isa = PBXGroup;
1807+
children = (
1808+
488C1E892D7150F900E955E8 /* SecretWalletsState.swift */,
1809+
482231202D714C3D00D592D8 /* SecretWalletsViewModel.swift */,
1810+
48023DF02D72FB3500852961 /* SecretWalletsAlertService.swift */,
1811+
);
1812+
path = SecretWallets;
1813+
sourceTree = "<group>";
1814+
};
17991815
48EE54F52D4BBD240036D340 /* AccountWallets */ = {
18001816
isa = PBXGroup;
18011817
children = (
@@ -2622,7 +2638,7 @@
26222638
E9E7CDBF2003AF6D00DFC4DB /* AdamantCellFactory.swift */,
26232639
E93D7ABF2052CF63005D19DC /* AdamantNotificationService.swift */,
26242640
41047B75294C62710039E956 /* AdamantVisibleWalletsService.swift */,
2625-
4815586F2D65A7660011B470 /* SecretWalletsService.swift */,
2641+
4815586F2D65A7660011B470 /* SecretWalletsManager.swift */,
26262642
4153045829C09902000E4BEA /* AdamantIncreaseFeeService.swift */,
26272643
4803FC992D6715AF00452D2C /* SecretWalletsFactory.swift */,
26282644
4184F1722A33102800D7B8B9 /* AdamantCrashlysticsService.swift */,
@@ -2756,6 +2772,7 @@
27562772
E940086C2114A8FD00CD2D67 /* Wallets */,
27572773
938F7D552955C05D001915CA /* Chat */,
27582774
E9E7CDA52002AE1C00DFC4DB /* Account */,
2775+
482231222D714C4400D592D8 /* SecretWallets */,
27592776
E95F857B2008C8B20070534A /* ChatsList */,
27602777
644EC35020EFA96700F40C73 /* Delegates */,
27612778
E919479A20001007001362F8 /* Login */,
@@ -3069,7 +3086,7 @@
30693086
85B405002D3012BD000AB744 /* AccountViewController */,
30703087
E983AE2020E655C500497E1A /* AccountHeaderView.swift */,
30713088
269E13512B594B2D008D1CA7 /* AccountFooterView.swift */,
3072-
E941CCDA20E786D700C96220 /* AccountHeader.xib */,
3089+
48023DEE2D72EA7F00852961 /* AccountHeader.xib */,
30733090
E983AE2C20E6720D00497E1A /* AccountFooter.xib */,
30743091
E941CCDC20E7B70200C96220 /* WalletCollectionViewCell.swift */,
30753092
E941CCDD20E7B70200C96220 /* WalletCollectionViewCell.xib */,
@@ -3394,6 +3411,7 @@
33943411
E9942B89203D9ECA00C163AF /* QrCell.xib in Resources */,
33953412
93496BB22A6CAED100DD062F /* Exo+2_400_italic.ttf in Resources */,
33963413
93496BAD2A6CAED100DD062F /* Roboto_700_normal.ttf in Resources */,
3414+
48023DEF2D72EA7F00852961 /* AccountHeader.xib in Resources */,
33973415
E921597D2065031D0000CA5C /* ButtonsStripe.xib in Resources */,
33983416
269B83342C74B4EC002AA1D7 /* welcome.mp3 in Resources */,
33993417
93496BAE2A6CAED100DD062F /* Exo+2_700_normal.ttf in Resources */,
@@ -3406,7 +3424,6 @@
34063424
E90EA5C321BA8BF400A2CE25 /* DelegateDetailsViewController.xib in Resources */,
34073425
269B83242C74B4EC002AA1D7 /* droplet.mp3 in Resources */,
34083426
E94E7B01205D3F090042B639 /* ChatListViewController.xib in Resources */,
3409-
E941CCDB20E786D800C96220 /* AccountHeader.xib in Resources */,
34103427
269B83322C74B4EC002AA1D7 /* slide.mp3 in Resources */,
34113428
93496BB72A6CAED100DD062F /* Roboto_500_normal.ttf in Resources */,
34123429
269B83102C74A2FF002AA1D7 /* note.mp3 in Resources */,
@@ -3720,6 +3737,7 @@
37203737
3A7BD0102AA9BD030045AAB0 /* AdamantVibroService.swift in Sources */,
37213738
85B405022D3012D5000AB744 /* AccountViewController+Form.swift in Sources */,
37223739
937EDFC02C9CF6B300F219BB /* VersionFooterView.swift in Sources */,
3740+
488C1E8A2D7150F900E955E8 /* SecretWalletsState.swift in Sources */,
37233741
A5E04227282A8BDC0076CD13 /* BtcBalanceResponse.swift in Sources */,
37243742
64F085D920E2D7600006DE68 /* AdmTransactionsViewController.swift in Sources */,
37253743
9322E87B2970431200B8357C /* ChatMessageFactory.swift in Sources */,
@@ -3795,7 +3813,7 @@
37953813
A50A41142822FC35006BDFE1 /* BtcTransferViewController.swift in Sources */,
37963814
93294B8E2AAD2C6B00911109 /* SwiftyOnboardPage.swift in Sources */,
37973815
E971591A21681D6900A5F904 /* TransactionStatus.swift in Sources */,
3798-
481558702D65A7660011B470 /* SecretWalletsService.swift in Sources */,
3816+
481558702D65A7660011B470 /* SecretWalletsManager.swift in Sources */,
37993817
648CE3A022999C890070A2CC /* BaseBtcTransaction.swift in Sources */,
38003818
A50A410A2822F8CE006BDFE1 /* BtcWallet.swift in Sources */,
38013819
E908472C2196FEA80095825D /* CoreDataAccount+CoreDataClass.swift in Sources */,
@@ -3883,6 +3901,7 @@
38833901
AAB01CAD2D3AE44B007D6BF4 /* BitcoinKitTransactionFactory.swift in Sources */,
38843902
648CE3A222999CE70070A2CC /* BTCRawTransaction.swift in Sources */,
38853903
648DD79E2236A0B500B811FD /* DogeTransactionsViewController.swift in Sources */,
3904+
48023DF12D72FB3500852961 /* SecretWalletsAlertService.swift in Sources */,
38863905
3A26D9392C3C1C62003AD832 /* KlyWalletFactory.swift in Sources */,
38873906
3A299C6B2B838F2300B54C61 /* ChatMediaContainerView.swift in Sources */,
38883907
64B5736F2209B892005DC968 /* BtcTransactionDetailsViewController.swift in Sources */,
@@ -4076,6 +4095,7 @@
40764095
41BCB310295C6082004B12AB /* VisibleWalletsResetTableViewCell.swift in Sources */,
40774096
93CCAE7B2B06D9B500EA5B94 /* DogeBlocksDTO.swift in Sources */,
40784097
3AF08D612B4EB3C400EB82B1 /* LanguageStorageProtocol.swift in Sources */,
4098+
482231212D714C3D00D592D8 /* SecretWalletsViewModel.swift in Sources */,
40794099
E9E7CDB12002B97B00DFC4DB /* AccountFactory.swift in Sources */,
40804100
E9AA8BF82129F13000F9249F /* ComplexTransferViewController.swift in Sources */,
40814101
E9A174B52057EDCE003667CD /* AdamantTransfersProvider+backgroundFetch.swift in Sources */,

Adamant/App/DI/AppAssembly.swift

+10-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ struct AppAssembly: MainThreadAssembly {
8787
SecretWalletsFactory(
8888
visibleWalletsService: r.resolve(VisibleWalletsService.self)!,
8989
accountService: r.resolve(AccountService.self)!,
90-
securedStore: r.resolve(SecuredStore.self)!
90+
securedStore: r.resolve(SecuredStore.self)!,
91+
container: container
9192
)
9293
}.inObjectScope(.container)
9394

@@ -489,5 +490,13 @@ struct AppAssembly: MainThreadAssembly {
489490
container.register(EthBIP32ServiceProtocol.self) { r in
490491
EthBIP32Service(ethApiService: r.resolve(ERC20ApiService.self)!)
491492
}.inObjectScope(.container)
493+
494+
// MARK: SecretWalletsAlertService
495+
container.register(SecretWalletsAlertService.self) { r in
496+
SecretWalletsAlertService(
497+
dialogService: r.resolve(DialogService.self)!,
498+
secretWalletsManager: r.resolve(SecretWalletsManagerProtocol.self)!
499+
)
500+
}.inObjectScope(.transient)
492501
}
493502
}

Adamant/Modules/Account/AccountFactory.swift

+3-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ struct AccountFactory {
2626
currencyInfoService: assembler.resolve(InfoServiceProtocol.self)!,
2727
languageService: assembler.resolve(LanguageStorageProtocol.self)!,
2828
walletServiceCompose: assembler.resolve(WalletServiceCompose.self)!,
29-
apiServiceCompose: assembler.resolve(ApiServiceComposeProtocol.self)!
29+
apiServiceCompose: assembler.resolve(ApiServiceComposeProtocol.self)!,
30+
secretWalletsManager: assembler.resolve(SecretWalletsManagerProtocol.self)!,
31+
secretWalletsAlertService: assembler.resolve(SecretWalletsAlertService.self)!
3032
)
3133
}
3234
}

Adamant/Modules/Account/AccountHeader.xib

+20-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="23094" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
33
<device id="retina4_7" orientation="portrait" appearance="light"/>
44
<dependencies>
55
<deployment identifier="iOS"/>
6-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21679"/>
6+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="23084"/>
77
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
88
</dependencies>
99
<customFonts key="customFonts">
@@ -53,29 +53,45 @@
5353
<rect key="frame" x="0.0" y="184" width="378" height="231"/>
5454
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
5555
</view>
56+
<button opaque="NO" contentMode="scaleAspectFit" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="eb2-uN-n5L" userLabel="Wallets">
57+
<rect key="frame" x="246.5" y="54" width="50" height="47.5"/>
58+
<constraints>
59+
<constraint firstAttribute="height" constant="50" id="1fJ-oy-zWi"/>
60+
<constraint firstAttribute="width" constant="50" id="IYN-Ky-Mer"/>
61+
</constraints>
62+
<fontDescription key="fontDescription" type="system" pointSize="18"/>
63+
<state key="normal" backgroundImage="lock.square" catalog="system"/>
64+
<connections>
65+
<action selector="walletsButtonTapped:" destination="iN0-l3-epB" eventType="touchUpInside" id="qE9-xE-Bul"/>
66+
</connections>
67+
</button>
5668
</subviews>
5769
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
5870
<constraints>
5971
<constraint firstItem="LHk-7R-5oq" firstAttribute="top" secondItem="6hF-gW-1fF" secondAttribute="bottom" constant="28" id="0d9-Ro-csQ"/>
6072
<constraint firstAttribute="bottom" secondItem="LHk-7R-5oq" secondAttribute="bottom" id="5u8-dI-fD1"/>
6173
<constraint firstItem="6hF-gW-1fF" firstAttribute="top" secondItem="IVQ-4p-zci" secondAttribute="bottom" constant="13" id="EN0-a5-cHs"/>
6274
<constraint firstAttribute="trailing" secondItem="LHk-7R-5oq" secondAttribute="trailing" id="FJv-73-Ayr"/>
75+
<constraint firstItem="eb2-uN-n5L" firstAttribute="leading" secondItem="IVQ-4p-zci" secondAttribute="trailing" constant="20" id="Wjj-r2-R44"/>
6376
<constraint firstItem="IVQ-4p-zci" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" constant="25" id="Z7D-Q0-s2x"/>
6477
<constraint firstItem="LHk-7R-5oq" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="eip-WC-PKw"/>
6578
<constraint firstItem="6hF-gW-1fF" firstAttribute="centerX" secondItem="IVQ-4p-zci" secondAttribute="centerX" id="gMH-Q7-bMw"/>
79+
<constraint firstItem="6hF-gW-1fF" firstAttribute="top" secondItem="eb2-uN-n5L" secondAttribute="bottom" constant="10" id="gah-vl-ppB"/>
6680
<constraint firstItem="IVQ-4p-zci" firstAttribute="centerX" secondItem="iN0-l3-epB" secondAttribute="centerX" id="jUo-aI-jOv"/>
6781
</constraints>
6882
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
6983
<connections>
7084
<outlet property="addressButton" destination="Iro-jA-X5P" id="u6V-wQ-5UR"/>
7185
<outlet property="avatarImageView" destination="IVQ-4p-zci" id="FoL-e1-OKu"/>
7286
<outlet property="walletViewContainer" destination="LHk-7R-5oq" id="u0m-up-Zyy"/>
87+
<outlet property="walletsButton" destination="eb2-uN-n5L" id="wmX-XR-OS7"/>
7388
</connections>
74-
<point key="canvasLocation" x="35" y="-95.5"/>
89+
<point key="canvasLocation" x="33.600000000000001" y="-95.802098950524751"/>
7590
</view>
7691
</objects>
7792
<resources>
7893
<image name="avatar_placeholder" width="75" height="75"/>
79-
<image name="square.and.arrow.up" catalog="system" width="115" height="128"/>
94+
<image name="lock.square" catalog="system" width="128" height="114"/>
95+
<image name="square.and.arrow.up" catalog="system" width="110" height="128"/>
8096
</resources>
8197
</document>

Adamant/Modules/Account/AccountHeaderView.swift

+6
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import UIKit
1111
@MainActor
1212
protocol AccountHeaderViewDelegate: AnyObject {
1313
func addressLabelTapped(from: UIView)
14+
func walletsButtonTapped(from: UIView)
1415
}
1516

1617
final class AccountHeaderView: UIView {
@@ -19,10 +20,15 @@ final class AccountHeaderView: UIView {
1920
@IBOutlet weak var avatarImageView: UIImageView!
2021
@IBOutlet weak var addressButton: UIButton!
2122
@IBOutlet weak var walletViewContainer: UIView!
23+
@IBOutlet weak var walletsButton: UIButton!
2224

2325
weak var delegate: AccountHeaderViewDelegate?
2426

2527
@IBAction func addressButtonTapped(_ sender: UIButton) {
2628
delegate?.addressLabelTapped(from: sender)
2729
}
30+
31+
@IBAction func walletsButtonTapped(_ sender: UIButton) {
32+
delegate?.walletsButtonTapped(from: sender)
33+
}
2834
}

0 commit comments

Comments
 (0)