Skip to content

Commit c2cb8b0

Browse files
committed
Share perpetual positions
1 parent 465deaf commit c2cb8b0

29 files changed

Lines changed: 481 additions & 245 deletions

Mixin.xcodeproj/project.pbxproj

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -911,6 +911,7 @@
911911
943EDC482C833B55007E160B /* Market+Localization.swift in Sources */ = {isa = PBXBuildFile; fileRef = 943EDC472C833B55007E160B /* Market+Localization.swift */; };
912912
943FEB3E2C9D79A3001A0BD2 /* MarketAlertTokenCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 943FEB3C2C9D79A3001A0BD2 /* MarketAlertTokenCell.swift */; };
913913
943FEB3F2C9D79A3001A0BD2 /* MarketAlertTokenCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 943FEB3D2C9D79A3001A0BD2 /* MarketAlertTokenCell.xib */; };
914+
9440019E2FA1E57A00105253 /* ShareObiSurroundedView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9440019D2FA1E57900105253 /* ShareObiSurroundedView.swift */; };
914915
944075D52E2E8B0F00591B45 /* WalletPendingDepositView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 944075D42E2E8B0F00591B45 /* WalletPendingDepositView.swift */; };
915916
944075DB2E2E8B2A00591B45 /* WalletPendingDepositView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 944075DA2E2E8B2A00591B45 /* WalletPendingDepositView.xib */; };
916917
944075FB2E2EA5B700591B45 /* WalletWatchingIndicatorView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 944075FA2E2EA5A200591B45 /* WalletWatchingIndicatorView.swift */; };
@@ -1055,6 +1056,8 @@
10551056
945FFC7A2C3818630013DC51 /* RouteAPI.swift in Sources */ = {isa = PBXBuildFile; fileRef = 945FFC792C3818630013DC51 /* RouteAPI.swift */; };
10561057
945FFC822C3829B00013DC51 /* SwapRequest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 945FFC812C3829B00013DC51 /* SwapRequest.swift */; };
10571058
945FFC8A2C3832230013DC51 /* SwapResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 945FFC892C3832230013DC51 /* SwapResponse.swift */; };
1059+
94614C102FA339C300A406B0 /* RewardAPI.swift in Sources */ = {isa = PBXBuildFile; fileRef = 94614C0F2FA339BE00A406B0 /* RewardAPI.swift */; };
1060+
94614C272FA3406200A406B0 /* Referral.swift in Sources */ = {isa = PBXBuildFile; fileRef = 94614C262FA3406000A406B0 /* Referral.swift */; };
10581061
94619F1F2C8DA6CA00C58829 /* GradientView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 94619F1E2C8DA6CA00C58829 /* GradientView.swift */; };
10591062
9462A6BD2E279093001E4C3E /* ExportingSecret.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9462A6BC2E27908B001E4C3E /* ExportingSecret.swift */; };
10601063
9462A6CB2E2790F3001E4C3E /* ExportImportedSecretValidationViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9462A6CA2E2790EA001E4C3E /* ExportImportedSecretValidationViewController.swift */; };
@@ -2784,6 +2787,7 @@
27842787
943EDC472C833B55007E160B /* Market+Localization.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Market+Localization.swift"; sourceTree = "<group>"; };
27852788
943FEB3C2C9D79A3001A0BD2 /* MarketAlertTokenCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MarketAlertTokenCell.swift; sourceTree = "<group>"; };
27862789
943FEB3D2C9D79A3001A0BD2 /* MarketAlertTokenCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = MarketAlertTokenCell.xib; sourceTree = "<group>"; };
2790+
9440019D2FA1E57900105253 /* ShareObiSurroundedView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShareObiSurroundedView.swift; sourceTree = "<group>"; };
27872791
944075D42E2E8B0F00591B45 /* WalletPendingDepositView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WalletPendingDepositView.swift; sourceTree = "<group>"; };
27882792
944075DA2E2E8B2A00591B45 /* WalletPendingDepositView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = WalletPendingDepositView.xib; sourceTree = "<group>"; };
27892793
944075FA2E2EA5A200591B45 /* WalletWatchingIndicatorView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WalletWatchingIndicatorView.swift; sourceTree = "<group>"; };
@@ -2945,6 +2949,8 @@
29452949
945FFC792C3818630013DC51 /* RouteAPI.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RouteAPI.swift; sourceTree = "<group>"; };
29462950
945FFC812C3829B00013DC51 /* SwapRequest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SwapRequest.swift; sourceTree = "<group>"; };
29472951
945FFC892C3832230013DC51 /* SwapResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SwapResponse.swift; sourceTree = "<group>"; };
2952+
94614C0F2FA339BE00A406B0 /* RewardAPI.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RewardAPI.swift; sourceTree = "<group>"; };
2953+
94614C262FA3406000A406B0 /* Referral.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Referral.swift; sourceTree = "<group>"; };
29482954
94619F1E2C8DA6CA00C58829 /* GradientView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GradientView.swift; sourceTree = "<group>"; };
29492955
9462A6BC2E27908B001E4C3E /* ExportingSecret.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ExportingSecret.swift; sourceTree = "<group>"; };
29502956
9462A6CA2E2790EA001E4C3E /* ExportImportedSecretValidationViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ExportImportedSecretValidationViewController.swift; sourceTree = "<group>"; };
@@ -4718,6 +4724,7 @@
47184724
9465E64A2E6DAE8D005974C6 /* DepositLink.swift */,
47194725
947058D42E687FDB0057FBC4 /* DepositInputAmountViewController.swift */,
47204726
9465E6762E6DF49B005974C6 /* DepositLinkPreviewViewController.swift */,
4727+
9440019D2FA1E57900105253 /* ShareObiSurroundedView.swift */,
47214728
9451E1F12E6B6AC300A5CA45 /* ShareDepositLinkViewController.swift */,
47224729
);
47234730
path = Deposit;
@@ -6234,6 +6241,7 @@
62346241
DFC0ECF023BB610B0091E7AC /* GiphyAPI.swift */,
62356242
7BC96DE224176B390047471D /* FoursquareAPI.swift */,
62366243
945FFC792C3818630013DC51 /* RouteAPI.swift */,
6244+
94614C0F2FA339BE00A406B0 /* RewardAPI.swift */,
62376245
);
62386246
path = API;
62396247
sourceTree = "<group>";
@@ -6277,6 +6285,7 @@
62776285
949D7D802F863C93005A26CD /* GaslessTransactionProposal.swift */,
62786286
9482FE772F8E541F006A463A /* SignedEVMGaslessTransactionProposal.swift */,
62796287
9482FED52F8F6CCD006A463A /* GaslessTransaction.swift */,
6288+
94614C262FA3406000A406B0 /* Referral.swift */,
62806289
);
62816290
path = Model;
62826291
sourceTree = "<group>";
@@ -7443,6 +7452,7 @@
74437452
7C07A17D29D8FDBC00D4835C /* NetworkInterface.swift in Sources */,
74447453
94F209D52C06C1A300550060 /* SolanaTransferOperation.swift in Sources */,
74457454
9427D52725E0EB5B00B1EF0E /* PlaylistItem.swift in Sources */,
7455+
94614C272FA3406200A406B0 /* Referral.swift in Sources */,
74467456
7C1A6C4326C6580600A1D6CE /* StickerPreviewItemCell.swift in Sources */,
74477457
9412AF4E2C1AEAE00083ABB3 /* ShareViewAsPictureViewController.swift in Sources */,
74487458
DFFDCF8420AD8A7A00B4956E /* FileSendViewController.swift in Sources */,
@@ -8195,6 +8205,7 @@
81958205
94902E4E2DA6CFA600E52FC6 /* TransactionStatusLabel.swift in Sources */,
81968206
7B7ABBE02539799900070B71 /* ScreenWidth.swift in Sources */,
81978207
94ADE11F2CD80AC70040A426 /* ChangeMobileNumberViewController.swift in Sources */,
8208+
9440019E2FA1E57A00105253 /* ShareObiSurroundedView.swift in Sources */,
81988209
944D17452F616A6F008BBA92 /* SharePerpetualPositionView.swift in Sources */,
81998210
52A056582BE362FF00CEC8A3 /* InscriptionViewController.swift in Sources */,
82008211
DFCF3BF020CF6EE10030AD4A /* StickerAddViewController.swift in Sources */,
@@ -8317,6 +8328,7 @@
83178328
7BF5EE4F2497A55700DDD9CC /* GroupCallMemberPickerViewController.swift in Sources */,
83188329
9416548B25CD7190007E76D0 /* AudioMetadata.swift in Sources */,
83198330
94428D622CA24B0200157E93 /* MarketAlert+Description.swift in Sources */,
8331+
94614C102FA339C300A406B0 /* RewardAPI.swift in Sources */,
83208332
7BDBDE6522361D85006220DF /* SeparatorShadowFooterView.swift in Sources */,
83218333
94F6F4682EBDE6A000D15424 /* Web3OrderDAO+Query.swift in Sources */,
83228334
DF9E66E5205B9AF300F1A0B9 /* HiddenTokensViewController.swift in Sources */,
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "universal",
5+
"scale" : "1x"
6+
},
7+
{
8+
"filename" : "share_branding_monochrome@2x.png",
9+
"idiom" : "universal",
10+
"scale" : "2x"
11+
},
12+
{
13+
"filename" : "share_branding_monochrome@3x.png",
14+
"idiom" : "universal",
15+
"scale" : "3x"
16+
}
17+
],
18+
"info" : {
19+
"author" : "xcode",
20+
"version" : 1
21+
}
22+
}
1.2 KB
Loading
1.71 KB
Loading

Mixin/Extension/FontExtension.swift

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,36 @@ extension UIFont {
88

99
}
1010

11+
extension UIFont.Weight {
12+
13+
static func accessiblityBoldTextCounterWeight(_ weight: UIFont.Weight) -> UIFont.Weight {
14+
guard UIAccessibility.isBoldTextEnabled else {
15+
return weight
16+
}
17+
return switch weight {
18+
case .black:
19+
.bold
20+
case .heavy:
21+
.semibold
22+
case .bold:
23+
.medium
24+
case .semibold:
25+
.regular
26+
case .medium:
27+
.light
28+
case .regular:
29+
.light
30+
case .light:
31+
.thin
32+
case .thin:
33+
.ultraLight
34+
default:
35+
.light
36+
}
37+
}
38+
39+
}
40+
1141
extension UIButton {
1242

1343
@IBInspectable

Mixin/Resources/en.lproj/Localizable.strings

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1302,6 +1302,7 @@
13021302
"referral_program_introduction_3" = "Rebate eligibility is valid for life";
13031303
"referral_program_introduction_footer" = "* Referral rewards are available only to paid Mixin One members. ";
13041304
"referral_program_introduction_header" = "Join the referral program and invite friends to earn crypto together:";
1305+
"referral_share_desc" = "Scan to install Mixin, use this referral code for %@ rebate";
13051306
"refresh" = "Refresh";
13061307
"refunded" = "Refunded";
13071308
"reject" = "Reject";

Mixin/Resources/es.lproj/Localizable.strings

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1302,6 +1302,7 @@
13021302
"referral_program_introduction_3" = "Rebate eligibility is valid for life";
13031303
"referral_program_introduction_footer" = "* Referral rewards are available only to paid Mixin One members. ";
13041304
"referral_program_introduction_header" = "Join the referral program and invite friends to earn crypto together:";
1305+
"referral_share_desc" = "Scan to install Mixin, use this referral code for %@ rebate";
13051306
"refresh" = "Actualizar";
13061307
"refunded" = "Refunded";
13071308
"reject" = "Reject";

Mixin/Resources/ja.lproj/Localizable.strings

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1302,6 +1302,7 @@
13021302
"referral_program_introduction_3" = "Rebate eligibility is valid for life";
13031303
"referral_program_introduction_footer" = "* Referral rewards are available only to paid Mixin One members. ";
13041304
"referral_program_introduction_header" = "Join the referral program and invite friends to earn crypto together:";
1305+
"referral_share_desc" = "Scan to install Mixin, use this referral code for %@ rebate";
13051306
"refresh" = "更新";
13061307
"refunded" = "Refunded";
13071308
"reject" = "Reject";

Mixin/Resources/ru.lproj/Localizable.strings

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1302,6 +1302,7 @@
13021302
"referral_program_introduction_3" = "Rebate eligibility is valid for life";
13031303
"referral_program_introduction_footer" = "* Referral rewards are available only to paid Mixin One members. ";
13041304
"referral_program_introduction_header" = "Join the referral program and invite friends to earn crypto together:";
1305+
"referral_share_desc" = "Scan to install Mixin, use this referral code for %@ rebate";
13051306
"refresh" = "Обновить";
13061307
"refunded" = "Refunded";
13071308
"reject" = "Reject";

Mixin/Resources/zh-Hans.lproj/Localizable.strings

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1302,6 +1302,7 @@
13021302
"referral_program_introduction_3" = "返佣资格终生有效";
13031303
"referral_program_introduction_footer" = "* 推荐奖励仅限于付费 Mixin One 会员。";
13041304
"referral_program_introduction_header" = "参与邀请计划,邀请好友分享赚币:";
1305+
"referral_share_desc" = "扫描安装 Mixin,使用此邀请码可享 %@ 返佣";
13051306
"refresh" = "刷新";
13061307
"refunded" = "已退款";
13071308
"reject" = "拒绝";

0 commit comments

Comments
 (0)