Skip to content

Commit

Permalink
Merge branch 'feature/dashpay' into feature/coinjoin-levels
Browse files Browse the repository at this point in the history
  • Loading branch information
Syn-McJ committed Oct 24, 2023
2 parents 71df6df + 8055af2 commit b3c6fb5
Show file tree
Hide file tree
Showing 14 changed files with 150 additions and 26 deletions.
1 change: 1 addition & 0 deletions .github/workflows/semantic-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,4 @@ jobs:
dashpay
wallet
coinjoin
voting
36 changes: 26 additions & 10 deletions DashWallet.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -541,12 +541,12 @@
47F4B6CD29485A8B00AED4C9 /* ConfirmOrderCells.swift in Sources */ = {isa = PBXBuildFile; fileRef = 47F4B6CC29485A8B00AED4C9 /* ConfirmOrderCells.swift */; };
47FA3AFF29350929008D58DC /* SyncingActivityMonitor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 47FA3AFE29350929008D58DC /* SyncingActivityMonitor.swift */; };
47FA3B0229364991008D58DC /* HTTPClient.swift in Sources */ = {isa = PBXBuildFile; fileRef = 47FA3B0129364991008D58DC /* HTTPClient.swift */; };
7502A4872AE401EF00ACDDD3 /* UsernameVotingViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7502A4862AE401EF00ACDDD3 /* UsernameVotingViewController.swift */; };
7502A4892AE4024000ACDDD3 /* UsernameVoting.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7502A4882AE4024000ACDDD3 /* UsernameVoting.storyboard */; };
7513DA882AB175E0005D55F6 /* TopperViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7527720E2AA9F58E0066557E /* TopperViewModel.swift */; };
7513DA892AB17606005D55F6 /* Topper.swift in Sources */ = {isa = PBXBuildFile; fileRef = 75E2F3C92AA4D1B900C3B458 /* Topper.swift */; };
7513DA8A2AB17666005D55F6 /* SupportedTopperAssets.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7527720C2AA9B2630066557E /* SupportedTopperAssets.swift */; };
7513DA8C2AB9643F005D55F6 /* BaseIntegrationModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7513DA8B2AB9643F005D55F6 /* BaseIntegrationModel.swift */; };
751B61BF2ADFF49800D1C2EF /* CrowdNode.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 751B61BE2ADFF49800D1C2EF /* CrowdNode.storyboard */; };
751B61C02ADFF49800D1C2EF /* CrowdNode.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 751B61BE2ADFF49800D1C2EF /* CrowdNode.storyboard */; };
751B61C12ADFF98800D1C2EF /* BaseIntegrationModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7513DA8B2AB9643F005D55F6 /* BaseIntegrationModel.swift */; };
751B61C22ADFF99D00D1C2EF /* CoinbaseDepositResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 75CED09F2ACFED200095F10C /* CoinbaseDepositResponse.swift */; };
751B61C32ADFF9AE00D1C2EF /* UpholdPortalModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = C9FAABB62AB799AE00878224 /* UpholdPortalModel.swift */; };
Expand All @@ -558,6 +558,8 @@
7527720D2AA9B2630066557E /* SupportedTopperAssets.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7527720C2AA9B2630066557E /* SupportedTopperAssets.swift */; };
7527720F2AA9F58E0066557E /* TopperViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7527720E2AA9F58E0066557E /* TopperViewModel.swift */; };
752772122AAA1CE30066557E /* Coinbase-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 752772112AAA1CE30066557E /* Coinbase-Info.plist */; };
75303FE52AE7B70500870D8B /* CrowdNode.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 75303FE42AE7B70500870D8B /* CrowdNode.storyboard */; };
75303FE62AE7B70500870D8B /* CrowdNode.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 75303FE42AE7B70500870D8B /* CrowdNode.storyboard */; };
754119E01CDA93FF0042DC51 /* NotificationCenter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BAE12BE61B2DEE7F00895CC5 /* NotificationCenter.framework */; };
755E6DFE2A99E7A000A42870 /* DWInvitationSetupState.m in Sources */ = {isa = PBXBuildFile; fileRef = 755E6DFC2A99E7A000A42870 /* DWInvitationSetupState.m */; };
757E09991ADB8EEB006FD352 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 757E09971ADB8EEB006FD352 /* Localizable.strings */; };
Expand Down Expand Up @@ -2364,6 +2366,8 @@
556B5EBEBAEA571D74FF69A3 /* Pods-WatchApp Extension.testflight.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-WatchApp Extension.testflight.xcconfig"; path = "Pods/Target Support Files/Pods-WatchApp Extension/Pods-WatchApp Extension.testflight.xcconfig"; sourceTree = "<group>"; };
5FD4C91FB8EAB529E8E41227 /* Pods-dashwallet no watch.testnet.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-dashwallet no watch.testnet.xcconfig"; path = "Pods/Target Support Files/Pods-dashwallet no watch/Pods-dashwallet no watch.testnet.xcconfig"; sourceTree = "<group>"; };
6FBBFC90577C940D8C04E0B1 /* Pods-DashWalletScreenshotsUITests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-DashWalletScreenshotsUITests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-DashWalletScreenshotsUITests/Pods-DashWalletScreenshotsUITests.debug.xcconfig"; sourceTree = "<group>"; };
7502A4862AE401EF00ACDDD3 /* UsernameVotingViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UsernameVotingViewController.swift; sourceTree = "<group>"; };
7502A4882AE4024000ACDDD3 /* UsernameVoting.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = UsernameVoting.storyboard; sourceTree = "<group>"; };
7509C10E1AF3076100D03FD5 /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/Localizable.strings"; sourceTree = "<group>"; };
7509C1121AF3720100D03FD5 /* es */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = es; path = es.lproj/Localizable.strings; sourceTree = "<group>"; };
750C6CC01B5C8EB60038AAE9 /* el */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = el; path = el.lproj/Localizable.strings; sourceTree = "<group>"; };
Expand All @@ -2373,11 +2377,11 @@
7511E8E31AE5FFCC0025F1B3 /* nl */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; lineEnding = 0; name = nl; path = nl.lproj/Localizable.strings; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.simpleColoring; };
7511E8EB1AE600220025F1B3 /* de */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = de; path = de.lproj/Localizable.strings; sourceTree = "<group>"; };
7513DA8B2AB9643F005D55F6 /* BaseIntegrationModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BaseIntegrationModel.swift; sourceTree = "<group>"; };
751B61BE2ADFF49800D1C2EF /* CrowdNode.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = CrowdNode.storyboard; sourceTree = "<group>"; };
751B61C72AE0EDD000D1C2EF /* CoinJoinLevelsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CoinJoinLevelsViewController.swift; sourceTree = "<group>"; };
7527720C2AA9B2630066557E /* SupportedTopperAssets.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SupportedTopperAssets.swift; sourceTree = "<group>"; };
7527720E2AA9F58E0066557E /* TopperViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TopperViewModel.swift; sourceTree = "<group>"; };
752772112AAA1CE30066557E /* Coinbase-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "Coinbase-Info.plist"; sourceTree = "<group>"; };
75303FE42AE7B70500870D8B /* CrowdNode.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = CrowdNode.storyboard; sourceTree = "<group>"; };
755E6DFC2A99E7A000A42870 /* DWInvitationSetupState.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DWInvitationSetupState.m; sourceTree = "<group>"; };
755E6DFD2A99E7A000A42870 /* DWInvitationSetupState.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DWInvitationSetupState.h; sourceTree = "<group>"; };
756A8F131CE566F6007893E2 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Interface.strings; sourceTree = "<group>"; };
Expand Down Expand Up @@ -3348,7 +3352,7 @@
1141E4C0291BB0FC00ACDA9E /* Portal */,
11BD737A28E6BCD400A34022 /* New Account */,
11E47BA728EAE7AD0097CFA0 /* CrowdNodeModel.swift */,
751B61BE2ADFF49800D1C2EF /* CrowdNode.storyboard */,
75303FE42AE7B70500870D8B /* CrowdNode.storyboard */,
);
path = CrowdNode;
sourceTree = "<group>";
Expand Down Expand Up @@ -3794,6 +3798,7 @@
2A44313C22CF631E009BAF7F /* UI */ = {
isa = PBXGroup;
children = (
7502A4852AE401DA00ACDDD3 /* Voting */,
75889B742AD296D500C17F5D /* CoinJoin */,
C943B34F2A40A54500AF23C5 /* DashPay */,
4751137228DAF27300223B77 /* Assembly */,
Expand Down Expand Up @@ -5906,6 +5911,15 @@
path = Networking;
sourceTree = "<group>";
};
7502A4852AE401DA00ACDDD3 /* Voting */ = {
isa = PBXGroup;
children = (
7502A4862AE401EF00ACDDD3 /* UsernameVotingViewController.swift */,
7502A4882AE4024000ACDDD3 /* UsernameVoting.storyboard */,
);
path = Voting;
sourceTree = "<group>";
};
75889B742AD296D500C17F5D /* CoinJoin */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -7641,7 +7655,7 @@
2AFF01E0243F74BF003718DC /* DWDPRegistrationErrorTableViewCell.xib in Resources */,
47838B7F290160860003E8AB /* ExploreDash.storyboard in Resources */,
474C720D298A19D100475CA6 /* TxDetailHeaderCell.xib in Resources */,
751B61BF2ADFF49800D1C2EF /* CrowdNode.storyboard in Resources */,
75303FE52AE7B70500870D8B /* CrowdNode.storyboard in Resources */,
2AB231D42196E27300A6E7E6 /* StartStoryboard.storyboard in Resources */,
C9FAABB52AB793CE00878224 /* BuySellPortal.storyboard in Resources */,
2A1AF6DF23C7681B00442AF5 /* DWShortcutCollectionViewCell~iphone.xib in Resources */,
Expand Down Expand Up @@ -7748,7 +7762,6 @@
C9D2C9652A38733B00D15901 /* DPAssets.xcassets in Resources */,
C9D2C90F2A320AA000D15901 /* StartStoryboard.storyboard in Resources */,
C9D2C9112A320AA000D15901 /* DWShortcutCollectionViewCell~iphone.xib in Resources */,
751B61C02ADFF49800D1C2EF /* CrowdNode.storyboard in Resources */,
C9D2C9122A320AA000D15901 /* DWInfoTextCell.xib in Resources */,
C9D2C9132A320AA000D15901 /* BiometricAuth.storyboard in Resources */,
C9D2C9142A320AA000D15901 /* TxListEmptyTableViewCell.xib in Resources */,
Expand Down Expand Up @@ -7793,11 +7806,13 @@
C9D2C93D2A320AA000D15901 /* QuickReceive.storyboard in Resources */,
C9D2C93E2A320AA000D15901 /* Tx.storyboard in Resources */,
C9D2C93F2A320AA000D15901 /* DashSyncCurrentCommit in Resources */,
7502A4892AE4024000ACDDD3 /* UsernameVoting.storyboard in Resources */,
C9D2C9402A320AA000D15901 /* DWMainMenuTableViewCell.xib in Resources */,
C9D2C9412A320AA000D15901 /* VerifiedSuccessfully.storyboard in Resources */,
C9D2C9422A320AA000D15901 /* Setup.storyboard in Resources */,
C9D2C9432A320AA000D15901 /* GoogleService-Info.plist in Resources */,
C9D2C9442A320AA000D15901 /* uphold-logout.jpg in Resources */,
75303FE62AE7B70500870D8B /* CrowdNode.storyboard in Resources */,
C9D2C9452A320AA000D15901 /* AmountPreviewView.xib in Resources */,
C9D2C9462A320AA000D15901 /* TxDetailActionCell.xib in Resources */,
C9D2C9472A320AA000D15901 /* CNCreateAccountCell.xib in Resources */,
Expand Down Expand Up @@ -9339,6 +9354,7 @@
C9D2C8642A320AA000D15901 /* AppliedFiltersView.swift in Sources */,
C9D2C8652A320AA000D15901 /* DWCaptureSessionManager.m in Sources */,
C9D2C8662A320AA000D15901 /* DWDataMigrationManager.m in Sources */,
7502A4872AE401EF00ACDDD3 /* UsernameVotingViewController.swift in Sources */,
C9D2C86A2A320AA000D15901 /* (null) in Sources */,
C943B51F2A40A54600AF23C5 /* DWSuccessInvitationView.m in Sources */,
C9D2C86B2A320AA000D15901 /* AmountPreviewView.swift in Sources */,
Expand Down Expand Up @@ -10401,7 +10417,7 @@
CLIENT_ID = 0c38beb67db0c68191326be347d7ec0abd7d77adb02a79db1abeba343f16a0f7;
CLIENT_SECRET = cc980185754f905e24250f877792817c03540b3d0e0959721df291c816797e59;
CODE_SIGN_ENTITLEMENTS = dashwallet/dashwallet.entitlements;
CURRENT_PROJECT_VERSION = 149;
CURRENT_PROJECT_VERSION = 150;
DEVELOPMENT_TEAM = 44RJ69WHFF;
EXCLUDED_ARCHS = "";
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "";
Expand Down Expand Up @@ -10537,7 +10553,7 @@
CLIENT_ID = 0c38beb67db0c68191326be347d7ec0abd7d77adb02a79db1abeba343f16a0f7;
CLIENT_SECRET = cc980185754f905e24250f877792817c03540b3d0e0959721df291c816797e59;
CODE_SIGN_ENTITLEMENTS = dashwallet/dashwallet.entitlements;
CURRENT_PROJECT_VERSION = 149;
CURRENT_PROJECT_VERSION = 150;
DEVELOPMENT_TEAM = 44RJ69WHFF;
EXCLUDED_ARCHS = "";
GCC_PRECOMPILE_PREFIX_HEADER = YES;
Expand Down Expand Up @@ -10672,7 +10688,7 @@
CLIENT_ID = 0c38beb67db0c68191326be347d7ec0abd7d77adb02a79db1abeba343f16a0f7;
CLIENT_SECRET = cc980185754f905e24250f877792817c03540b3d0e0959721df291c816797e59;
CODE_SIGN_ENTITLEMENTS = dashwallet/dashwallet.entitlements;
CURRENT_PROJECT_VERSION = 149;
CURRENT_PROJECT_VERSION = 150;
DEVELOPMENT_TEAM = 44RJ69WHFF;
EXCLUDED_ARCHS = "";
GCC_PRECOMPILE_PREFIX_HEADER = YES;
Expand Down Expand Up @@ -10817,7 +10833,7 @@
CLIENT_ID = 0c38beb67db0c68191326be347d7ec0abd7d77adb02a79db1abeba343f16a0f7;
CLIENT_SECRET = cc980185754f905e24250f877792817c03540b3d0e0959721df291c816797e59;
CODE_SIGN_ENTITLEMENTS = dashwallet/dashwallet.entitlements;
CURRENT_PROJECT_VERSION = 149;
CURRENT_PROJECT_VERSION = 150;
DEVELOPMENT_TEAM = 44RJ69WHFF;
EXCLUDED_ARCHS = "";
GCC_PRECOMPILE_PREFIX_HEADER = YES;
Expand Down
6 changes: 3 additions & 3 deletions DashWallet/Resources/AppAssets.xcassets/Menu/Contents.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"info" : {
"version" : 1,
"author" : "xcode"
"author" : "xcode",
"version" : 1
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "voting.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions DashWallet/Sources/UI/Menu/Main/DWMainMenuViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,12 @@ - (void)mainMenuContentView:(DWMainMenuContentView *)view didSelectMenuItem:(id<
[self.navigationController pushViewController:controller animated:YES];
break;
}
case DWMainMenuItemType_Voting: {
UsernameVotingViewController *controller = [UsernameVotingViewController controller];
controller.hidesBottomBarWhenPushed = YES;
[self.navigationController pushViewController:controller animated:YES];
break;
}
#endif
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
return [UIImage imageNamed:@"menu_support"];
case DWMainMenuItemType_Invite:
return [UIImage imageNamed:@"menu_invite"];
case DWMainMenuItemType_Voting:
return [UIImage imageNamed:@"menu_voting"];
}
}

Expand All @@ -56,6 +58,8 @@
return NSLocalizedString(@"Support", nil);
case DWMainMenuItemType_Invite:
return NSLocalizedString(@"Invite", nil);
case DWMainMenuItemType_Voting:
return NSLocalizedString(@"Username voting", nil);
}
}

Expand All @@ -75,6 +79,8 @@
return NSLocalizedString(@"Report an Issue", nil);
case DWMainMenuItemType_Invite:
return NSLocalizedString(@"Let your friends and family to join Dash", nil);
case DWMainMenuItemType_Voting:
return NSLocalizedString(@"", nil);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ typedef NS_ENUM(NSUInteger, DWMainMenuItemType) {
DWMainMenuItemType_Tools,
DWMainMenuItemType_Support,
DWMainMenuItemType_Invite,
DWMainMenuItemType_Voting
};

@protocol DWMainMenuItem <NSObject>
Expand Down
6 changes: 6 additions & 0 deletions DashWallet/Sources/UI/Menu/Main/Views/Model/DWMainMenuModel.m
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ + (NSArray *)allItems {
[[DWMainMenuItemImpl alloc] initWithType:DWMainMenuItemType_Security],
[[DWMainMenuItemImpl alloc] initWithType:DWMainMenuItemType_Settings],
[[DWMainMenuItemImpl alloc] initWithType:DWMainMenuItemType_Tools],
#if DASHPAY
[[DWMainMenuItemImpl alloc] initWithType:DWMainMenuItemType_Voting],
#endif
[[DWMainMenuItemImpl alloc] initWithType:DWMainMenuItemType_Support],
];
});
Expand All @@ -88,6 +91,9 @@ + (NSArray *)testnetItems {
[[DWMainMenuItemImpl alloc] initWithType:DWMainMenuItemType_Security],
[[DWMainMenuItemImpl alloc] initWithType:DWMainMenuItemType_Settings],
[[DWMainMenuItemImpl alloc] initWithType:DWMainMenuItemType_Tools],
#if DASHPAY
[[DWMainMenuItemImpl alloc] initWithType:DWMainMenuItemType_Voting],
#endif
[[DWMainMenuItemImpl alloc] initWithType:DWMainMenuItemType_Support],
];
});
Expand Down
33 changes: 33 additions & 0 deletions DashWallet/Sources/UI/Voting/UsernameVoting.storyboard
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="22154" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_12" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22130"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="System colors in document resources" minToolsVersion="11.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--Username Voting View Controller-->
<scene sceneID="s0d-6b-0kx">
<objects>
<viewController storyboardIdentifier="UsernameVotingViewController" id="Y6W-OH-hqX" customClass="UsernameVotingViewController" customModule="dashpay" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="5EZ-qb-Rvc">
<rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<viewLayoutGuide key="safeArea" id="vDu-zF-Fre"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="Ief-a0-LHa" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-1" y="4"/>
</scene>
</scenes>
<resources>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>
32 changes: 32 additions & 0 deletions DashWallet/Sources/UI/Voting/UsernameVotingViewController.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
//
// Created by Andrei Ashikhmin
// Copyright © 2023 Dash Core Group. All rights reserved.
//
// Licensed under the MIT License (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://opensource.org/licenses/MIT
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//

import Foundation

class UsernameVotingViewController: UIViewController {
@objc
static func controller() -> UsernameVotingViewController {
vc(UsernameVotingViewController.self, from: sb("UsernameVoting"))
}

override func viewDidLayoutSubviews() {
let alert = UIAlertController(title: NSLocalizedString("Vote only on duplicates", comment: "Voting"), message: NSLocalizedString("You can review all requests but you only need to vote on duplicates", comment: "Voting"), preferredStyle: .alert)
let okAction = UIAlertAction(title: NSLocalizedString("OK", comment: ""), style: .cancel)
alert.addAction(okAction)
present(alert, animated: true)
}
}
Loading

0 comments on commit b3c6fb5

Please sign in to comment.