Merge pull request #71 from zcash/feature/ui-components
Initial UI Components
This commit is contained in:
commit
0e7ed30f44
|
@ -8,6 +8,8 @@
|
|||
|
||||
/* Begin PBXBuildFile section */
|
||||
0D170A7226BC802800EB6A46 /* Router.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0D170A7126BC802800EB6A46 /* Router.swift */; };
|
||||
0D185819272723FF0046B928 /* BlueChip.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0D185818272723FF0046B928 /* BlueChip.swift */; };
|
||||
0D18581B272728D60046B928 /* PhraseChip.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0D18581A272728D60046B928 /* PhraseChip.swift */; };
|
||||
0D1922EA26BDD96A00052649 /* ViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0D1922E926BDD96A00052649 /* ViewModel.swift */; };
|
||||
0D1922ED26BDE0C600052649 /* AppRouter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0D1922EC26BDE0C600052649 /* AppRouter.swift */; };
|
||||
0D1922F226BDE29300052649 /* ZcashSDKStubs.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0D1922F126BDE29300052649 /* ZcashSDKStubs.swift */; };
|
||||
|
@ -34,7 +36,11 @@
|
|||
0D4E7A1026B364180058B01E /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0D4E7A0F26B364180058B01E /* Preview Assets.xcassets */; };
|
||||
0D4E7A1B26B364180058B01E /* secantTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0D4E7A1A26B364180058B01E /* secantTests.swift */; };
|
||||
0D4E7A2626B364180058B01E /* secantUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0D4E7A2526B364180058B01E /* secantUITests.swift */; };
|
||||
0D535FDE271F4214009A9E3E /* Rubik-Italic-VariableFont_wght.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 0D535FDC271F4214009A9E3E /* Rubik-Italic-VariableFont_wght.ttf */; };
|
||||
0D535FDF271F4214009A9E3E /* Rubik-VariableFont_wght.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 0D535FDD271F4214009A9E3E /* Rubik-VariableFont_wght.ttf */; };
|
||||
0D535FE2271F9476009A9E3E /* EnumeratedChip.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0D535FE1271F9476009A9E3E /* EnumeratedChip.swift */; };
|
||||
0D5D16F526E24CCF00AD33D1 /* AppError.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0D5D16F426E24CCF00AD33D1 /* AppError.swift */; };
|
||||
0D7DF08C271DCC0E00530046 /* ScreenBackground.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0D7DF08B271DCC0E00530046 /* ScreenBackground.swift */; };
|
||||
0D864A0526E1546000A61879 /* LoadingScreenTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0D864A0426E1546000A61879 /* LoadingScreenTests.swift */; };
|
||||
0D864A0926E154FD00A61879 /* InitFailedScreen.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0D864A0726E154FD00A61879 /* InitFailedScreen.swift */; };
|
||||
0D864A0A26E154FD00A61879 /* InitFailedScreenViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0D864A0826E154FD00A61879 /* InitFailedScreenViewModel.swift */; };
|
||||
|
@ -42,7 +48,6 @@
|
|||
0D864A0F26E1583000A61879 /* LoadingScreenViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0D864A0D26E1583000A61879 /* LoadingScreenViewModel.swift */; };
|
||||
0DA13C8F26C15D1D00E3B610 /* WelcomeScreen.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0DA13C8D26C15D1D00E3B610 /* WelcomeScreen.swift */; };
|
||||
0DA13C9026C15D1D00E3B610 /* WelcomeScreenViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0DA13C8E26C15D1D00E3B610 /* WelcomeScreenViewModel.swift */; };
|
||||
0DA13C9326C15E2F00E3B610 /* PlainButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0DA13C9226C15E2F00E3B610 /* PlainButton.swift */; };
|
||||
0DA13C9726C186FF00E3B610 /* RestoreWalletScreen.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0DA13C9526C186FF00E3B610 /* RestoreWalletScreen.swift */; };
|
||||
0DA13C9826C186FF00E3B610 /* RestoreWalletScreenViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0DA13C9626C186FF00E3B610 /* RestoreWalletScreenViewModel.swift */; };
|
||||
0DA13C9C26C1942100E3B610 /* BackupWalletScreen.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0DA13C9A26C1942100E3B610 /* BackupWalletScreen.swift */; };
|
||||
|
@ -50,13 +55,37 @@
|
|||
0DA13CA126C1955600E3B610 /* HomeScreen.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0DA13C9F26C1955600E3B610 /* HomeScreen.swift */; };
|
||||
0DA13CA226C1955600E3B610 /* HomeScreenViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0DA13CA026C1955600E3B610 /* HomeScreenViewModel.swift */; };
|
||||
0DA13CA526C1963000E3B610 /* Balance.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0DA13CA426C1963000E3B610 /* Balance.swift */; };
|
||||
0DACFA7F27208CE00039EEA5 /* Clamped.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0DACFA7E27208CE00039EEA5 /* Clamped.swift */; };
|
||||
0DACFA8127208D940039EEA5 /* UInt+SuperscriptText.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0DACFA8027208D940039EEA5 /* UInt+SuperscriptText.swift */; };
|
||||
0DACFA9027209FA70039EEA5 /* Roboto-Bold.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 0DACFA8327209FA60039EEA5 /* Roboto-Bold.ttf */; };
|
||||
0DACFA9127209FA70039EEA5 /* Roboto-LightItalic.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 0DACFA8427209FA60039EEA5 /* Roboto-LightItalic.ttf */; };
|
||||
0DACFA9227209FA70039EEA5 /* Roboto-Italic.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 0DACFA8527209FA60039EEA5 /* Roboto-Italic.ttf */; };
|
||||
0DACFA9327209FA70039EEA5 /* Roboto-Medium.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 0DACFA8627209FA60039EEA5 /* Roboto-Medium.ttf */; };
|
||||
0DACFA9427209FA70039EEA5 /* Roboto-BoldItalic.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 0DACFA8727209FA60039EEA5 /* Roboto-BoldItalic.ttf */; };
|
||||
0DACFA9527209FA70039EEA5 /* Roboto-Regular.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 0DACFA8827209FA60039EEA5 /* Roboto-Regular.ttf */; };
|
||||
0DACFA9627209FA70039EEA5 /* Roboto-Thin.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 0DACFA8927209FA60039EEA5 /* Roboto-Thin.ttf */; };
|
||||
0DACFA9727209FA70039EEA5 /* Roboto-Black.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 0DACFA8A27209FA70039EEA5 /* Roboto-Black.ttf */; };
|
||||
0DACFA9827209FA70039EEA5 /* Roboto-MediumItalic.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 0DACFA8B27209FA70039EEA5 /* Roboto-MediumItalic.ttf */; };
|
||||
0DACFA9927209FA70039EEA5 /* Roboto-BlackItalic.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 0DACFA8C27209FA70039EEA5 /* Roboto-BlackItalic.ttf */; };
|
||||
0DACFA9A27209FA70039EEA5 /* Roboto-Light.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 0DACFA8D27209FA70039EEA5 /* Roboto-Light.ttf */; };
|
||||
0DACFA9C27209FA70039EEA5 /* Roboto-ThinItalic.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 0DACFA8F27209FA70039EEA5 /* Roboto-ThinItalic.ttf */; };
|
||||
0DB8AA81271DC7520035BC9D /* DesignGuide.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0DB8AA80271DC7520035BC9D /* DesignGuide.swift */; };
|
||||
0DF2DC51272344E400FA31E2 /* EmptyChip.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0DF2DC50272344E400FA31E2 /* EmptyChip.swift */; };
|
||||
0DF2DC5427235E3E00FA31E2 /* View+InnerShadow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0DF2DC5327235E3E00FA31E2 /* View+InnerShadow.swift */; };
|
||||
660558E9270C7A54009D6954 /* Colors.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 660558E8270C7A54009D6954 /* Colors.xcassets */; };
|
||||
660558F7270C862F009D6954 /* Fonts+Generated.swift in Sources */ = {isa = PBXBuildFile; fileRef = 660558F5270C862F009D6954 /* Fonts+Generated.swift */; };
|
||||
660558F8270C862F009D6954 /* XCAssets+Generated.swift in Sources */ = {isa = PBXBuildFile; fileRef = 660558F6270C862F009D6954 /* XCAssets+Generated.swift */; };
|
||||
663FAB9C271D874D00E495F8 /* ActiveButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = 663FAB9B271D874D00E495F8 /* ActiveButton.swift */; };
|
||||
663FAB9E271D875700E495F8 /* CreateButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = 663FAB9D271D875700E495F8 /* CreateButton.swift */; };
|
||||
663FABA0271D876200E495F8 /* PrimaryButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = 663FAB9F271D876200E495F8 /* PrimaryButton.swift */; };
|
||||
663FABA2271D876C00E495F8 /* SecondaryButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = 663FABA1271D876C00E495F8 /* SecondaryButton.swift */; };
|
||||
6654C73A2715A38000901167 /* ComposableArchitecture in Frameworks */ = {isa = PBXBuildFile; productRef = 6654C7392715A38000901167 /* ComposableArchitecture */; };
|
||||
6654C73E2715A41300901167 /* OnboardingStore.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6654C73D2715A41300901167 /* OnboardingStore.swift */; };
|
||||
6654C7412715A47300901167 /* Onboarding.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6654C7402715A47300901167 /* Onboarding.swift */; };
|
||||
6654C7442715A4AC00901167 /* OnboardingStoreTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6654C7432715A4AC00901167 /* OnboardingStoreTests.swift */; };
|
||||
66A0807B271993C500118B79 /* OnboardingProgressIndicator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 66A0807A271993C500118B79 /* OnboardingProgressIndicator.swift */; };
|
||||
66D50668271D9B6100E51F0D /* NavigationButtonStyle.swift in Sources */ = {isa = PBXBuildFile; fileRef = 66D50667271D9B6100E51F0D /* NavigationButtonStyle.swift */; };
|
||||
66DC733F271D88CC0053CBB6 /* StandardButtonStyle.swift in Sources */ = {isa = PBXBuildFile; fileRef = 66DC733E271D88CC0053CBB6 /* StandardButtonStyle.swift */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXContainerItemProxy section */
|
||||
|
@ -78,6 +107,8 @@
|
|||
|
||||
/* Begin PBXFileReference section */
|
||||
0D170A7126BC802800EB6A46 /* Router.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Router.swift; sourceTree = "<group>"; };
|
||||
0D185818272723FF0046B928 /* BlueChip.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BlueChip.swift; sourceTree = "<group>"; };
|
||||
0D18581A272728D60046B928 /* PhraseChip.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PhraseChip.swift; sourceTree = "<group>"; };
|
||||
0D1922E926BDD96A00052649 /* ViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewModel.swift; sourceTree = "<group>"; };
|
||||
0D1922EC26BDE0C600052649 /* AppRouter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppRouter.swift; sourceTree = "<group>"; };
|
||||
0D1922F126BDE29300052649 /* ZcashSDKStubs.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ZcashSDKStubs.swift; sourceTree = "<group>"; };
|
||||
|
@ -110,7 +141,11 @@
|
|||
0D4E7A2126B364180058B01E /* secantUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = secantUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
0D4E7A2526B364180058B01E /* secantUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = secantUITests.swift; sourceTree = "<group>"; };
|
||||
0D4E7A2726B364180058B01E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||
0D535FDC271F4214009A9E3E /* Rubik-Italic-VariableFont_wght.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Rubik-Italic-VariableFont_wght.ttf"; sourceTree = "<group>"; };
|
||||
0D535FDD271F4214009A9E3E /* Rubik-VariableFont_wght.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Rubik-VariableFont_wght.ttf"; sourceTree = "<group>"; };
|
||||
0D535FE1271F9476009A9E3E /* EnumeratedChip.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EnumeratedChip.swift; sourceTree = "<group>"; };
|
||||
0D5D16F426E24CCF00AD33D1 /* AppError.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppError.swift; sourceTree = "<group>"; };
|
||||
0D7DF08B271DCC0E00530046 /* ScreenBackground.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ScreenBackground.swift; sourceTree = "<group>"; };
|
||||
0D864A0426E1546000A61879 /* LoadingScreenTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LoadingScreenTests.swift; sourceTree = "<group>"; };
|
||||
0D864A0726E154FD00A61879 /* InitFailedScreen.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InitFailedScreen.swift; sourceTree = "<group>"; };
|
||||
0D864A0826E154FD00A61879 /* InitFailedScreenViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InitFailedScreenViewModel.swift; sourceTree = "<group>"; };
|
||||
|
@ -118,7 +153,6 @@
|
|||
0D864A0D26E1583000A61879 /* LoadingScreenViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LoadingScreenViewModel.swift; sourceTree = "<group>"; };
|
||||
0DA13C8D26C15D1D00E3B610 /* WelcomeScreen.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WelcomeScreen.swift; sourceTree = "<group>"; };
|
||||
0DA13C8E26C15D1D00E3B610 /* WelcomeScreenViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WelcomeScreenViewModel.swift; sourceTree = "<group>"; };
|
||||
0DA13C9226C15E2F00E3B610 /* PlainButton.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PlainButton.swift; sourceTree = "<group>"; };
|
||||
0DA13C9526C186FF00E3B610 /* RestoreWalletScreen.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RestoreWalletScreen.swift; sourceTree = "<group>"; };
|
||||
0DA13C9626C186FF00E3B610 /* RestoreWalletScreenViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RestoreWalletScreenViewModel.swift; sourceTree = "<group>"; };
|
||||
0DA13C9A26C1942100E3B610 /* BackupWalletScreen.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BackupWalletScreen.swift; sourceTree = "<group>"; };
|
||||
|
@ -126,12 +160,36 @@
|
|||
0DA13C9F26C1955600E3B610 /* HomeScreen.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeScreen.swift; sourceTree = "<group>"; };
|
||||
0DA13CA026C1955600E3B610 /* HomeScreenViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeScreenViewModel.swift; sourceTree = "<group>"; };
|
||||
0DA13CA426C1963000E3B610 /* Balance.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Balance.swift; sourceTree = "<group>"; };
|
||||
0DACFA7E27208CE00039EEA5 /* Clamped.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Clamped.swift; sourceTree = "<group>"; };
|
||||
0DACFA8027208D940039EEA5 /* UInt+SuperscriptText.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UInt+SuperscriptText.swift"; sourceTree = "<group>"; };
|
||||
0DACFA8327209FA60039EEA5 /* Roboto-Bold.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Roboto-Bold.ttf"; sourceTree = "<group>"; };
|
||||
0DACFA8427209FA60039EEA5 /* Roboto-LightItalic.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Roboto-LightItalic.ttf"; sourceTree = "<group>"; };
|
||||
0DACFA8527209FA60039EEA5 /* Roboto-Italic.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Roboto-Italic.ttf"; sourceTree = "<group>"; };
|
||||
0DACFA8627209FA60039EEA5 /* Roboto-Medium.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Roboto-Medium.ttf"; sourceTree = "<group>"; };
|
||||
0DACFA8727209FA60039EEA5 /* Roboto-BoldItalic.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Roboto-BoldItalic.ttf"; sourceTree = "<group>"; };
|
||||
0DACFA8827209FA60039EEA5 /* Roboto-Regular.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Roboto-Regular.ttf"; sourceTree = "<group>"; };
|
||||
0DACFA8927209FA60039EEA5 /* Roboto-Thin.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Roboto-Thin.ttf"; sourceTree = "<group>"; };
|
||||
0DACFA8A27209FA70039EEA5 /* Roboto-Black.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Roboto-Black.ttf"; sourceTree = "<group>"; };
|
||||
0DACFA8B27209FA70039EEA5 /* Roboto-MediumItalic.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Roboto-MediumItalic.ttf"; sourceTree = "<group>"; };
|
||||
0DACFA8C27209FA70039EEA5 /* Roboto-BlackItalic.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Roboto-BlackItalic.ttf"; sourceTree = "<group>"; };
|
||||
0DACFA8D27209FA70039EEA5 /* Roboto-Light.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Roboto-Light.ttf"; sourceTree = "<group>"; };
|
||||
0DACFA8F27209FA70039EEA5 /* Roboto-ThinItalic.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Roboto-ThinItalic.ttf"; sourceTree = "<group>"; };
|
||||
0DB8AA80271DC7520035BC9D /* DesignGuide.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DesignGuide.swift; sourceTree = "<group>"; };
|
||||
0DF2DC50272344E400FA31E2 /* EmptyChip.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmptyChip.swift; sourceTree = "<group>"; };
|
||||
0DF2DC5327235E3E00FA31E2 /* View+InnerShadow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "View+InnerShadow.swift"; sourceTree = "<group>"; };
|
||||
660558E8270C7A54009D6954 /* Colors.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Colors.xcassets; sourceTree = "<group>"; };
|
||||
660558F5270C862F009D6954 /* Fonts+Generated.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "Fonts+Generated.swift"; sourceTree = "<group>"; };
|
||||
660558F6270C862F009D6954 /* XCAssets+Generated.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "XCAssets+Generated.swift"; sourceTree = "<group>"; };
|
||||
663FAB9B271D874D00E495F8 /* ActiveButton.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ActiveButton.swift; sourceTree = "<group>"; };
|
||||
663FAB9D271D875700E495F8 /* CreateButton.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CreateButton.swift; sourceTree = "<group>"; };
|
||||
663FAB9F271D876200E495F8 /* PrimaryButton.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PrimaryButton.swift; sourceTree = "<group>"; };
|
||||
663FABA1271D876C00E495F8 /* SecondaryButton.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SecondaryButton.swift; sourceTree = "<group>"; };
|
||||
6654C73D2715A41300901167 /* OnboardingStore.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OnboardingStore.swift; sourceTree = "<group>"; };
|
||||
6654C7402715A47300901167 /* Onboarding.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Onboarding.swift; sourceTree = "<group>"; };
|
||||
6654C7432715A4AC00901167 /* OnboardingStoreTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OnboardingStoreTests.swift; sourceTree = "<group>"; };
|
||||
66A0807A271993C500118B79 /* OnboardingProgressIndicator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OnboardingProgressIndicator.swift; sourceTree = "<group>"; };
|
||||
66D50667271D9B6100E51F0D /* NavigationButtonStyle.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NavigationButtonStyle.swift; sourceTree = "<group>"; };
|
||||
66DC733E271D88CC0053CBB6 /* StandardButtonStyle.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StandardButtonStyle.swift; sourceTree = "<group>"; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
|
@ -218,6 +276,8 @@
|
|||
0D2ACE7E26C2C65E00D62E3C /* Fonts */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
0DACFA8227209F930039EEA5 /* Roboto */,
|
||||
0D535FDB271F3B50009A9E3E /* Rubik */,
|
||||
0D2ACE7F26C2C67100D62E3C /* Zboto.otf */,
|
||||
);
|
||||
path = Fonts;
|
||||
|
@ -300,6 +360,7 @@
|
|||
0D4E7A0726B364170058B01E /* secant */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
0DACFA7D27208CC80039EEA5 /* Util */,
|
||||
6654C73B2715A3F000901167 /* Features */,
|
||||
660558F4270C85F7009D6954 /* Generated */,
|
||||
0D5D16F326E24CB900AD33D1 /* App Errors */,
|
||||
|
@ -349,6 +410,26 @@
|
|||
path = secantUITests;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
0D535FDB271F3B50009A9E3E /* Rubik */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
0D535FDC271F4214009A9E3E /* Rubik-Italic-VariableFont_wght.ttf */,
|
||||
0D535FDD271F4214009A9E3E /* Rubik-VariableFont_wght.ttf */,
|
||||
);
|
||||
path = Rubik;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
0D535FE0271F945C009A9E3E /* Chips */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
0D535FE1271F9476009A9E3E /* EnumeratedChip.swift */,
|
||||
0DF2DC50272344E400FA31E2 /* EmptyChip.swift */,
|
||||
0D185818272723FF0046B928 /* BlueChip.swift */,
|
||||
0D18581A272728D60046B928 /* PhraseChip.swift */,
|
||||
);
|
||||
path = Chips;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
0D5D16F326E24CB900AD33D1 /* App Errors */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
|
@ -387,7 +468,12 @@
|
|||
0DA13C9126C15E1900E3B610 /* UI Components */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
0DA13C9226C15E2F00E3B610 /* PlainButton.swift */,
|
||||
0DF2DC5227235E1F00FA31E2 /* Extensions */,
|
||||
0D535FE0271F945C009A9E3E /* Chips */,
|
||||
663FAB9A271D873300E495F8 /* Buttons */,
|
||||
66A0807A271993C500118B79 /* OnboardingProgressIndicator.swift */,
|
||||
0DB8AA80271DC7520035BC9D /* DesignGuide.swift */,
|
||||
0D7DF08B271DCC0E00530046 /* ScreenBackground.swift */,
|
||||
);
|
||||
path = "UI Components";
|
||||
sourceTree = "<group>";
|
||||
|
@ -427,6 +513,42 @@
|
|||
path = Models;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
0DACFA7D27208CC80039EEA5 /* Util */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
0DACFA7E27208CE00039EEA5 /* Clamped.swift */,
|
||||
0DACFA8027208D940039EEA5 /* UInt+SuperscriptText.swift */,
|
||||
);
|
||||
path = Util;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
0DACFA8227209F930039EEA5 /* Roboto */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
0DACFA8A27209FA70039EEA5 /* Roboto-Black.ttf */,
|
||||
0DACFA8C27209FA70039EEA5 /* Roboto-BlackItalic.ttf */,
|
||||
0DACFA8327209FA60039EEA5 /* Roboto-Bold.ttf */,
|
||||
0DACFA8727209FA60039EEA5 /* Roboto-BoldItalic.ttf */,
|
||||
0DACFA8527209FA60039EEA5 /* Roboto-Italic.ttf */,
|
||||
0DACFA8D27209FA70039EEA5 /* Roboto-Light.ttf */,
|
||||
0DACFA8427209FA60039EEA5 /* Roboto-LightItalic.ttf */,
|
||||
0DACFA8627209FA60039EEA5 /* Roboto-Medium.ttf */,
|
||||
0DACFA8B27209FA70039EEA5 /* Roboto-MediumItalic.ttf */,
|
||||
0DACFA8827209FA60039EEA5 /* Roboto-Regular.ttf */,
|
||||
0DACFA8927209FA60039EEA5 /* Roboto-Thin.ttf */,
|
||||
0DACFA8F27209FA70039EEA5 /* Roboto-ThinItalic.ttf */,
|
||||
);
|
||||
path = Roboto;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
0DF2DC5227235E1F00FA31E2 /* Extensions */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
0DF2DC5327235E3E00FA31E2 /* View+InnerShadow.swift */,
|
||||
);
|
||||
path = Extensions;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
660558F4270C85F7009D6954 /* Generated */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
|
@ -436,6 +558,19 @@
|
|||
path = Generated;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
663FAB9A271D873300E495F8 /* Buttons */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
66DC733E271D88CC0053CBB6 /* StandardButtonStyle.swift */,
|
||||
663FAB9B271D874D00E495F8 /* ActiveButton.swift */,
|
||||
663FAB9D271D875700E495F8 /* CreateButton.swift */,
|
||||
663FAB9F271D876200E495F8 /* PrimaryButton.swift */,
|
||||
663FABA1271D876C00E495F8 /* SecondaryButton.swift */,
|
||||
66D50667271D9B6100E51F0D /* NavigationButtonStyle.swift */,
|
||||
);
|
||||
path = Buttons;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
6654C73B2715A3F000901167 /* Features */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
|
@ -580,9 +715,23 @@
|
|||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
0DACFA9327209FA70039EEA5 /* Roboto-Medium.ttf in Resources */,
|
||||
0DACFA9827209FA70039EEA5 /* Roboto-MediumItalic.ttf in Resources */,
|
||||
0DACFA9427209FA70039EEA5 /* Roboto-BoldItalic.ttf in Resources */,
|
||||
0DACFA9027209FA70039EEA5 /* Roboto-Bold.ttf in Resources */,
|
||||
0DACFA9227209FA70039EEA5 /* Roboto-Italic.ttf in Resources */,
|
||||
0D535FDE271F4214009A9E3E /* Rubik-Italic-VariableFont_wght.ttf in Resources */,
|
||||
0DACFA9127209FA70039EEA5 /* Roboto-LightItalic.ttf in Resources */,
|
||||
0DACFA9927209FA70039EEA5 /* Roboto-BlackItalic.ttf in Resources */,
|
||||
0DACFA9527209FA70039EEA5 /* Roboto-Regular.ttf in Resources */,
|
||||
0D4E7A1026B364180058B01E /* Preview Assets.xcassets in Resources */,
|
||||
660558E9270C7A54009D6954 /* Colors.xcassets in Resources */,
|
||||
0D535FDF271F4214009A9E3E /* Rubik-VariableFont_wght.ttf in Resources */,
|
||||
0DACFA9A27209FA70039EEA5 /* Roboto-Light.ttf in Resources */,
|
||||
0D4E7A0D26B364180058B01E /* Assets.xcassets in Resources */,
|
||||
0DACFA9727209FA70039EEA5 /* Roboto-Black.ttf in Resources */,
|
||||
0DACFA9C27209FA70039EEA5 /* Roboto-ThinItalic.ttf in Resources */,
|
||||
0DACFA9627209FA70039EEA5 /* Roboto-Thin.ttf in Resources */,
|
||||
0D2ACE8026C2C67100D62E3C /* Zboto.otf in Resources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
|
@ -613,6 +762,8 @@
|
|||
);
|
||||
inputPaths = (
|
||||
"$(SRCROOT)/swiftlint.yml",
|
||||
"$(SRCROOT)/secant/Colors.xcassets",
|
||||
"$(SRCROOT)/secant/Assets/xcassets",
|
||||
);
|
||||
name = SwiftGen;
|
||||
outputFileListPaths = (
|
||||
|
@ -654,10 +805,13 @@
|
|||
0D32281F26C5867D00262533 /* ScanQrScreenViewModel.swift in Sources */,
|
||||
0D32282E26C5870B00262533 /* SendScreenViewModel.swift in Sources */,
|
||||
0D32282D26C5870B00262533 /* SendScreen.swift in Sources */,
|
||||
663FABA2271D876C00E495F8 /* SecondaryButton.swift in Sources */,
|
||||
0D1922ED26BDE0C600052649 /* AppRouter.swift in Sources */,
|
||||
0D1922F226BDE29300052649 /* ZcashSDKStubs.swift in Sources */,
|
||||
0DA13C9D26C1942100E3B610 /* BackupWalletScreenViewModel.swift in Sources */,
|
||||
0DACFA7F27208CE00039EEA5 /* Clamped.swift in Sources */,
|
||||
0D354A0B26D5A9D000315F45 /* MnemonicSeedPhraseHandling.swift in Sources */,
|
||||
0D535FE2271F9476009A9E3E /* EnumeratedChip.swift in Sources */,
|
||||
6654C73E2715A41300901167 /* OnboardingStore.swift in Sources */,
|
||||
0D32281E26C5867D00262533 /* ScanQrScreen.swift in Sources */,
|
||||
0D864A0E26E1583000A61879 /* LoadingScreen.swift in Sources */,
|
||||
|
@ -665,24 +819,36 @@
|
|||
0DA13C9826C186FF00E3B610 /* RestoreWalletScreenViewModel.swift in Sources */,
|
||||
0D32283326C5877A00262533 /* BalanceScreenViewModel.swift in Sources */,
|
||||
0D5D16F526E24CCF00AD33D1 /* AppError.swift in Sources */,
|
||||
0D18581B272728D60046B928 /* PhraseChip.swift in Sources */,
|
||||
0DB8AA81271DC7520035BC9D /* DesignGuide.swift in Sources */,
|
||||
0D32282326C586A800262533 /* HistoryScreen.swift in Sources */,
|
||||
0D864A0A26E154FD00A61879 /* InitFailedScreenViewModel.swift in Sources */,
|
||||
0DA13CA526C1963000E3B610 /* Balance.swift in Sources */,
|
||||
66D50668271D9B6100E51F0D /* NavigationButtonStyle.swift in Sources */,
|
||||
0D1922F826BDEB3500052649 /* MockServices.swift in Sources */,
|
||||
0D4E7A0B26B364170058B01E /* ContentView.swift in Sources */,
|
||||
0D170A7226BC802800EB6A46 /* Router.swift in Sources */,
|
||||
0D354A0926D5A9D000315F45 /* Services.swift in Sources */,
|
||||
660558F7270C862F009D6954 /* Fonts+Generated.swift in Sources */,
|
||||
0DA13C9726C186FF00E3B610 /* RestoreWalletScreen.swift in Sources */,
|
||||
0DACFA8127208D940039EEA5 /* UInt+SuperscriptText.swift in Sources */,
|
||||
0DF2DC51272344E400FA31E2 /* EmptyChip.swift in Sources */,
|
||||
0D1922EA26BDD96A00052649 /* ViewModel.swift in Sources */,
|
||||
0D4E7A0926B364170058B01E /* SecantApp.swift in Sources */,
|
||||
66DC733F271D88CC0053CBB6 /* StandardButtonStyle.swift in Sources */,
|
||||
0D864A0926E154FD00A61879 /* InitFailedScreen.swift in Sources */,
|
||||
663FABA0271D876200E495F8 /* PrimaryButton.swift in Sources */,
|
||||
663FAB9C271D874D00E495F8 /* ActiveButton.swift in Sources */,
|
||||
0DF2DC5427235E3E00FA31E2 /* View+InnerShadow.swift in Sources */,
|
||||
0D32281A26C5864B00262533 /* ProfileScreenViewModel.swift in Sources */,
|
||||
0D185819272723FF0046B928 /* BlueChip.swift in Sources */,
|
||||
0D864A0F26E1583000A61879 /* LoadingScreenViewModel.swift in Sources */,
|
||||
0DA13CA126C1955600E3B610 /* HomeScreen.swift in Sources */,
|
||||
0DA13C9026C15D1D00E3B610 /* WelcomeScreenViewModel.swift in Sources */,
|
||||
66A0807B271993C500118B79 /* OnboardingProgressIndicator.swift in Sources */,
|
||||
663FAB9E271D875700E495F8 /* CreateButton.swift in Sources */,
|
||||
0D7DF08C271DCC0E00530046 /* ScreenBackground.swift in Sources */,
|
||||
0DA13C8F26C15D1D00E3B610 /* WelcomeScreen.swift in Sources */,
|
||||
0DA13C9326C15E2F00E3B610 /* PlainButton.swift in Sources */,
|
||||
0D32282826C586E000262533 /* RequestZcashScreen.swift in Sources */,
|
||||
0D32283226C5877A00262533 /* BalanceScreen.swift in Sources */,
|
||||
0D354A0A26D5A9D000315F45 /* KeyStoring.swift in Sources */,
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
"colors" : [
|
||||
{
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0xE3",
|
||||
"green" : "0xD4",
|
||||
"red" : "0xC3"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
},
|
||||
{
|
||||
"appearances" : [
|
||||
{
|
||||
"appearance" : "luminosity",
|
||||
"value" : "dark"
|
||||
}
|
||||
],
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "1.000",
|
||||
"green" : "1.000",
|
||||
"red" : "1.000"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
"colors" : [
|
||||
{
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0x57",
|
||||
"green" : "0x33",
|
||||
"red" : "0x26"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
},
|
||||
{
|
||||
"appearances" : [
|
||||
{
|
||||
"appearance" : "luminosity",
|
||||
"value" : "dark"
|
||||
}
|
||||
],
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0x57",
|
||||
"green" : "0x33",
|
||||
"red" : "0x26"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
"colors" : [
|
||||
{
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0.937",
|
||||
"green" : "0.863",
|
||||
"red" : "0.784"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
},
|
||||
{
|
||||
"appearances" : [
|
||||
{
|
||||
"appearance" : "luminosity",
|
||||
"value" : "dark"
|
||||
}
|
||||
],
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0.937",
|
||||
"green" : "0.863",
|
||||
"red" : "0.784"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
"colors" : [
|
||||
{
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0xD9",
|
||||
"green" : "0xC0",
|
||||
"red" : "0xA7"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
},
|
||||
{
|
||||
"appearances" : [
|
||||
{
|
||||
"appearance" : "luminosity",
|
||||
"value" : "dark"
|
||||
}
|
||||
],
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0xD9",
|
||||
"green" : "0xC0",
|
||||
"red" : "0xA7"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
|
@ -5,9 +5,9 @@
|
|||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "1.000",
|
||||
"green" : "1.000",
|
||||
"red" : "1.000"
|
||||
"blue" : "0xFF",
|
||||
"green" : "0xFF",
|
||||
"red" : "0xFF"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
|
@ -23,9 +23,9 @@
|
|||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "0.000",
|
||||
"blue" : "1.000",
|
||||
"green" : "1.000",
|
||||
"red" : "1.000"
|
||||
"blue" : "0xFF",
|
||||
"green" : "0xFF",
|
||||
"red" : "0xFF"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
|
|
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
"colors" : [
|
||||
{
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0xA0",
|
||||
"green" : "0x81",
|
||||
"red" : "0x6E"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
},
|
||||
{
|
||||
"appearances" : [
|
||||
{
|
||||
"appearance" : "luminosity",
|
||||
"value" : "dark"
|
||||
}
|
||||
],
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0xA0",
|
||||
"green" : "0x81",
|
||||
"red" : "0x6E"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
"colors" : [
|
||||
{
|
||||
"color" : {
|
||||
"color-space" : "extended-linear-srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0xF3",
|
||||
"green" : "0xE4",
|
||||
"red" : "0xD2"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
},
|
||||
{
|
||||
"appearances" : [
|
||||
{
|
||||
"appearance" : "luminosity",
|
||||
"value" : "dark"
|
||||
}
|
||||
],
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0x5A",
|
||||
"green" : "0x36",
|
||||
"red" : "0x29"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
"colors" : [
|
||||
{
|
||||
"color" : {
|
||||
"color-space" : "display-p3",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0xF9",
|
||||
"green" : "0xEF",
|
||||
"red" : "0xE3"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
},
|
||||
{
|
||||
"appearances" : [
|
||||
{
|
||||
"appearance" : "luminosity",
|
||||
"value" : "dark"
|
||||
}
|
||||
],
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0x55",
|
||||
"green" : "0x31",
|
||||
"red" : "0x24"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
"colors" : [
|
||||
{
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0xD6",
|
||||
"green" : "0xC5",
|
||||
"red" : "0xB6"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
},
|
||||
{
|
||||
"appearances" : [
|
||||
{
|
||||
"appearance" : "luminosity",
|
||||
"value" : "dark"
|
||||
}
|
||||
],
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0xE6",
|
||||
"green" : "0xE5",
|
||||
"red" : "0xE0"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
"colors" : [
|
||||
{
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "0.200",
|
||||
"blue" : "0x36",
|
||||
"green" : "0x2C",
|
||||
"red" : "0x27"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
},
|
||||
{
|
||||
"appearances" : [
|
||||
{
|
||||
"appearance" : "luminosity",
|
||||
"value" : "dark"
|
||||
}
|
||||
],
|
||||
"idiom" : "universal"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
"colors" : [
|
||||
{
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0xFC",
|
||||
"green" : "0xF7",
|
||||
"red" : "0xF2"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
},
|
||||
{
|
||||
"appearances" : [
|
||||
{
|
||||
"appearance" : "luminosity",
|
||||
"value" : "dark"
|
||||
}
|
||||
],
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "1.000",
|
||||
"green" : "1.000",
|
||||
"red" : "1.000"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
|
@ -5,9 +5,9 @@
|
|||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0x6E",
|
||||
"green" : "0x47",
|
||||
"red" : "0x2E"
|
||||
"blue" : "0x59",
|
||||
"green" : "0x35",
|
||||
"red" : "0x28"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
|
|
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
"colors" : [
|
||||
{
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0x59",
|
||||
"green" : "0x35",
|
||||
"red" : "0x28"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
},
|
||||
{
|
||||
"appearances" : [
|
||||
{
|
||||
"appearance" : "luminosity",
|
||||
"value" : "dark"
|
||||
}
|
||||
],
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "1.000",
|
||||
"green" : "1.000",
|
||||
"red" : "1.000"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
"colors" : [
|
||||
{
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0x47",
|
||||
"green" : "0x37",
|
||||
"red" : "0x2D"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
},
|
||||
{
|
||||
"appearances" : [
|
||||
{
|
||||
"appearance" : "luminosity",
|
||||
"value" : "dark"
|
||||
}
|
||||
],
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0xF2",
|
||||
"green" : "0xDC",
|
||||
"red" : "0xCB"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
"colors" : [
|
||||
{
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0.573",
|
||||
"green" : "0.522",
|
||||
"red" : "0.933"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
},
|
||||
{
|
||||
"appearances" : [
|
||||
{
|
||||
"appearance" : "luminosity",
|
||||
"value" : "dark"
|
||||
}
|
||||
],
|
||||
"idiom" : "universal"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
|
@ -0,0 +1,202 @@
|
|||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
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.
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -19,11 +19,43 @@ internal typealias SystemFont = FontConvertible.SystemFont
|
|||
|
||||
// swiftlint:disable identifier_name line_length type_body_length
|
||||
internal enum FontFamily {
|
||||
internal enum Roboto {
|
||||
internal static let black = FontConvertible(name: "Roboto-Black", family: "Roboto", path: "Roboto-Black.ttf")
|
||||
internal static let blackItalic = FontConvertible(name: "Roboto-BlackItalic", family: "Roboto", path: "Roboto-BlackItalic.ttf")
|
||||
internal static let bold = FontConvertible(name: "Roboto-Bold", family: "Roboto", path: "Roboto-Bold.ttf")
|
||||
internal static let boldItalic = FontConvertible(name: "Roboto-BoldItalic", family: "Roboto", path: "Roboto-BoldItalic.ttf")
|
||||
internal static let italic = FontConvertible(name: "Roboto-Italic", family: "Roboto", path: "Roboto-Italic.ttf")
|
||||
internal static let light = FontConvertible(name: "Roboto-Light", family: "Roboto", path: "Roboto-Light.ttf")
|
||||
internal static let lightItalic = FontConvertible(name: "Roboto-LightItalic", family: "Roboto", path: "Roboto-LightItalic.ttf")
|
||||
internal static let medium = FontConvertible(name: "Roboto-Medium", family: "Roboto", path: "Roboto-Medium.ttf")
|
||||
internal static let mediumItalic = FontConvertible(name: "Roboto-MediumItalic", family: "Roboto", path: "Roboto-MediumItalic.ttf")
|
||||
internal static let regular = FontConvertible(name: "Roboto-Regular", family: "Roboto", path: "Roboto-Regular.ttf")
|
||||
internal static let thin = FontConvertible(name: "Roboto-Thin", family: "Roboto", path: "Roboto-Thin.ttf")
|
||||
internal static let thinItalic = FontConvertible(name: "Roboto-ThinItalic", family: "Roboto", path: "Roboto-ThinItalic.ttf")
|
||||
internal static let all: [FontConvertible] = [black, blackItalic, bold, boldItalic, italic, light, lightItalic, medium, mediumItalic, regular, thin, thinItalic]
|
||||
}
|
||||
internal enum Rubik {
|
||||
internal static let light = FontConvertible(name: "Rubik-Light", family: "Rubik", path: "Rubik-VariableFont_wght.ttf")
|
||||
internal static let lightItalic = FontConvertible(name: "Rubik-LightItalic", family: "Rubik", path: "Rubik-Italic-VariableFont_wght.ttf")
|
||||
internal static let blackItalic = FontConvertible(name: "RubikItalic-Black", family: "Rubik", path: "Rubik-Italic-VariableFont_wght.ttf")
|
||||
internal static let boldItalic = FontConvertible(name: "RubikItalic-Bold", family: "Rubik", path: "Rubik-Italic-VariableFont_wght.ttf")
|
||||
internal static let extraBoldItalic = FontConvertible(name: "RubikItalic-ExtraBold", family: "Rubik", path: "Rubik-Italic-VariableFont_wght.ttf")
|
||||
internal static let mediumItalic = FontConvertible(name: "RubikItalic-Medium", family: "Rubik", path: "Rubik-Italic-VariableFont_wght.ttf")
|
||||
internal static let italic = FontConvertible(name: "RubikItalic-Regular", family: "Rubik", path: "Rubik-Italic-VariableFont_wght.ttf")
|
||||
internal static let semiBoldItalic = FontConvertible(name: "RubikItalic-SemiBold", family: "Rubik", path: "Rubik-Italic-VariableFont_wght.ttf")
|
||||
internal static let black = FontConvertible(name: "RubikRoman-Black", family: "Rubik", path: "Rubik-VariableFont_wght.ttf")
|
||||
internal static let bold = FontConvertible(name: "RubikRoman-Bold", family: "Rubik", path: "Rubik-VariableFont_wght.ttf")
|
||||
internal static let extraBold = FontConvertible(name: "RubikRoman-ExtraBold", family: "Rubik", path: "Rubik-VariableFont_wght.ttf")
|
||||
internal static let medium = FontConvertible(name: "RubikRoman-Medium", family: "Rubik", path: "Rubik-VariableFont_wght.ttf")
|
||||
internal static let regular = FontConvertible(name: "RubikRoman-Regular", family: "Rubik", path: "Rubik-VariableFont_wght.ttf")
|
||||
internal static let semiBold = FontConvertible(name: "RubikRoman-SemiBold", family: "Rubik", path: "Rubik-VariableFont_wght.ttf")
|
||||
internal static let all: [FontConvertible] = [light, lightItalic, blackItalic, boldItalic, extraBoldItalic, mediumItalic, italic, semiBoldItalic, black, bold, extraBold, medium, regular, semiBold]
|
||||
}
|
||||
internal enum Zboto {
|
||||
internal static let regular = FontConvertible(name: "ZbotoRegular", family: "Zboto", path: "Zboto.otf")
|
||||
internal static let all: [FontConvertible] = [regular]
|
||||
}
|
||||
internal static let allCustomFonts: [FontConvertible] = [Zboto.all].flatMap { $0 }
|
||||
internal static let allCustomFonts: [FontConvertible] = [Roboto.all, Rubik.all, Zboto.all].flatMap { $0 }
|
||||
internal static func registerAllCustomFonts() {
|
||||
allCustomFonts.forEach { $0.register() }
|
||||
}
|
||||
|
|
|
@ -30,10 +30,16 @@ internal enum Asset {
|
|||
}
|
||||
}
|
||||
internal enum Colors {
|
||||
internal enum BackgroundColors {
|
||||
internal static let phraseGridDarkGray = ColorAsset(name: "phraseGridDarkGray")
|
||||
}
|
||||
internal enum Buttons {
|
||||
internal static let activeButton = ColorAsset(name: "ActiveButton")
|
||||
internal static let createButton = ColorAsset(name: "CreateButton")
|
||||
internal static let createButtonDisabled = ColorAsset(name: "CreateButtonDisabled")
|
||||
internal static let createButtonPressed = ColorAsset(name: "CreateButtonPressed")
|
||||
internal static let onboardingNavigation = ColorAsset(name: "OnboardingNavigation")
|
||||
internal static let onboardingNavigationPressed = ColorAsset(name: "OnboardingNavigationPressed")
|
||||
internal static let primaryButton = ColorAsset(name: "PrimaryButton")
|
||||
internal static let primaryButtonDisabled = ColorAsset(name: "PrimaryButtonDisabled")
|
||||
internal static let primaryButtonPressed = ColorAsset(name: "PrimaryButtonPressed")
|
||||
|
@ -48,12 +54,25 @@ internal enum Asset {
|
|||
internal enum ProgressIndicator {
|
||||
internal static let gradientLeft = ColorAsset(name: "GradientLeft")
|
||||
internal static let gradientRight = ColorAsset(name: "GradientRight")
|
||||
internal static let negativeSpace = ColorAsset(name: "NegativeSpace")
|
||||
}
|
||||
internal enum ScreenBackground {
|
||||
internal static let gradientEnd = ColorAsset(name: "gradientEnd")
|
||||
internal static let gradientStart = ColorAsset(name: "gradientStart")
|
||||
}
|
||||
internal enum Shadow {
|
||||
internal static let emptyChipInnerShadow = ColorAsset(name: "emptyChipInnerShadow")
|
||||
internal static let numberedTextShadow = ColorAsset(name: "numberedTextShadow")
|
||||
}
|
||||
internal enum Text {
|
||||
internal static let activeButtonText = ColorAsset(name: "ActiveButtonText")
|
||||
internal static let button = ColorAsset(name: "Button")
|
||||
internal static let heading = ColorAsset(name: "Heading")
|
||||
internal static let medium = ColorAsset(name: "Medium")
|
||||
internal static let regular = ColorAsset(name: "Regular")
|
||||
internal static let secondaryButtonText = ColorAsset(name: "SecondaryButtonText")
|
||||
internal static let titleText = ColorAsset(name: "TitleText")
|
||||
internal static let highlightedSuperscriptText = ColorAsset(name: "highlightedSuperscriptText")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,6 +30,20 @@
|
|||
<key>UIAppFonts</key>
|
||||
<array>
|
||||
<string>Zboto.otf</string>
|
||||
<string>Rubik-Italic-VariableFont_wght.ttf</string>
|
||||
<string>Rubik-VariableFont_wght.ttf</string>
|
||||
<string>Roboto-Thin.ttf</string>
|
||||
<string>Roboto-BlackItalic.ttf</string>
|
||||
<string>Roboto-Black.ttf</string>
|
||||
<string>Roboto-BoldItalic.ttf</string>
|
||||
<string>Roboto-Bold.ttf</string>
|
||||
<string>Roboto-MediumItalic.ttf</string>
|
||||
<string>Roboto-Medium.ttf</string>
|
||||
<string>Roboto-Italic.ttf</string>
|
||||
<string>Roboto-Regular.ttf</string>
|
||||
<string>Roboto-LightItalic.ttf</string>
|
||||
<string>Roboto-Light.ttf</string>
|
||||
<string>Roboto-ThinItalic.ttf</string>
|
||||
</array>
|
||||
<key>UIApplicationSceneManifest</key>
|
||||
<dict>
|
||||
|
|
|
@ -13,6 +13,7 @@ enum AppRouterScreen {
|
|||
case createRestoreWallet
|
||||
case home
|
||||
case loadingFailed
|
||||
case designGuide
|
||||
}
|
||||
|
||||
class AppRouter: Router {
|
||||
|
@ -29,6 +30,9 @@ class AppRouter: Router {
|
|||
NavigationView {
|
||||
AppRouterView(router: self)
|
||||
}
|
||||
.onTapGesture(count: 10) {
|
||||
self.screen = .designGuide
|
||||
}
|
||||
}
|
||||
|
||||
@ViewBuilder func createNew() -> some View {
|
||||
|
@ -49,6 +53,10 @@ class AppRouter: Router {
|
|||
@ViewBuilder func loadingFailedScreen() -> some View {
|
||||
Text("loading failed")
|
||||
}
|
||||
|
||||
@ViewBuilder func designGuide() -> some View {
|
||||
DesignGuide()
|
||||
}
|
||||
}
|
||||
|
||||
struct AppRouterView: View {
|
||||
|
@ -56,6 +64,7 @@ struct AppRouterView: View {
|
|||
|
||||
var body: some View {
|
||||
viewForScreen(router.screen)
|
||||
.applyScreenBackground()
|
||||
}
|
||||
|
||||
@ViewBuilder func viewForScreen(_ screen: AppRouterScreen) -> some View {
|
||||
|
@ -64,6 +73,7 @@ struct AppRouterView: View {
|
|||
case .createRestoreWallet: router.createNew()
|
||||
case .home: router.home()
|
||||
case .loadingFailed: router.loadingFailedScreen()
|
||||
case .designGuide: router.designGuide()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -56,21 +56,24 @@ struct HomeScreen: View {
|
|||
Button(action: {}, label: {
|
||||
Text("Request ZEC")
|
||||
})
|
||||
.buttonStyle(PlainButton())
|
||||
.primaryButtonStyle
|
||||
.frame(height: 50)
|
||||
}
|
||||
|
||||
@ViewBuilder var sendButton: some View {
|
||||
Button(action: {}, label: {
|
||||
Text("Send ZEC")
|
||||
})
|
||||
.buttonStyle(PlainButton())
|
||||
.primaryButtonStyle
|
||||
.frame(height: 50)
|
||||
}
|
||||
|
||||
@ViewBuilder var historyButton: some View {
|
||||
Button(action: {}, label: {
|
||||
Text("History")
|
||||
})
|
||||
.buttonStyle(PlainButton(style: .light))
|
||||
.primaryButtonStyle
|
||||
.frame(height: 50)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -23,7 +23,8 @@ struct RestoreWalletScreen: View {
|
|||
Button(action: {}, label: {
|
||||
Text("Restore Seed Phrase")
|
||||
})
|
||||
.buttonStyle(PlainButton())
|
||||
.primaryButtonStyle
|
||||
.frame(height: 50)
|
||||
}
|
||||
.padding(.horizontal, 30)
|
||||
.padding(.vertical)
|
||||
|
|
|
@ -28,14 +28,16 @@ struct WelcomeScreen: View {
|
|||
}, label: {
|
||||
Text("RESTORE WALLET")
|
||||
})
|
||||
.buttonStyle(PlainButton())
|
||||
.primaryButtonStyle
|
||||
.frame(height: 50)
|
||||
|
||||
Button(action: {
|
||||
self.viewModel.createNew()
|
||||
}, label: {
|
||||
Text("CREATE NEW WALLET")
|
||||
})
|
||||
.buttonStyle(PlainButton())
|
||||
.primaryButtonStyle
|
||||
.frame(height: 50)
|
||||
}
|
||||
}
|
||||
.padding()
|
||||
|
|
|
@ -0,0 +1,36 @@
|
|||
//
|
||||
// ActiveButton.swift
|
||||
// secant-testnet
|
||||
//
|
||||
// Created by Adam Stener on 10/14/21.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
extension Button {
|
||||
var activeButtonStyle: some View {
|
||||
buttonStyle(
|
||||
StandardButtonStyle(
|
||||
foregroundColor: Asset.Colors.Text.activeButtonText.color,
|
||||
background: Asset.Colors.Buttons.activeButton.color,
|
||||
pressedBackgroundColor: Asset.Colors.Buttons.activeButton.color
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
struct ActiveButton_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
Button("Active Button") { dump("Active button") }
|
||||
.activeButtonStyle
|
||||
.frame(width: 250, height: 50)
|
||||
.previewLayout(.fixed(width: 300, height: 100))
|
||||
.preferredColorScheme(.light)
|
||||
|
||||
Button("Active Button") { dump("Active button") }
|
||||
.activeButtonStyle
|
||||
.frame(width: 250, height: 50)
|
||||
.previewLayout(.fixed(width: 300, height: 100))
|
||||
.preferredColorScheme(.dark)
|
||||
}
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
//
|
||||
// PrimaryButton.swift
|
||||
// secant-testnet
|
||||
//
|
||||
// Created by Adam Stener on 10/14/21.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
extension Button {
|
||||
var createButtonStyle: some View {
|
||||
buttonStyle(
|
||||
StandardButtonStyle(
|
||||
foregroundColor: Asset.Colors.Text.button.color,
|
||||
background: Asset.Colors.Buttons.createButton.color,
|
||||
pressedBackgroundColor: Asset.Colors.Buttons.createButtonPressed.color
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
struct CreateButton_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
Button("Create Button") { dump("Create button") }
|
||||
.createButtonStyle
|
||||
.frame(width: 250, height: 50)
|
||||
.previewLayout(.fixed(width: 300, height: 100))
|
||||
.preferredColorScheme(.light)
|
||||
|
||||
Button("Create Button") { dump("Create button") }
|
||||
.createButtonStyle
|
||||
.frame(width: 250, height: 50)
|
||||
.previewLayout(.fixed(width: 300, height: 100))
|
||||
.preferredColorScheme(.dark)
|
||||
}
|
||||
}
|
|
@ -0,0 +1,51 @@
|
|||
//
|
||||
// ButtonModifier.swift
|
||||
// secant-testnet
|
||||
//
|
||||
// Created by Adam Stener on 10/18/21.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct NavigationButtonStyle: ButtonStyle {
|
||||
func makeBody(configuration: Configuration) -> some View {
|
||||
configuration.label
|
||||
.frame(
|
||||
minWidth: 0,
|
||||
maxWidth: .infinity,
|
||||
minHeight: 0,
|
||||
maxHeight: .infinity
|
||||
)
|
||||
.foregroundColor(Asset.Colors.Text.button.color)
|
||||
.background(
|
||||
configuration.isPressed ?
|
||||
Asset.Colors.Buttons.onboardingNavigationPressed.color :
|
||||
Asset.Colors.Buttons.onboardingNavigation.color
|
||||
)
|
||||
.cornerRadius(.infinity)
|
||||
}
|
||||
}
|
||||
|
||||
private extension Button {
|
||||
var navigationButtonStyle: some View {
|
||||
buttonStyle(
|
||||
NavigationButtonStyle()
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
struct NavigationModifier_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
Button("Back") { dump("Example button") }
|
||||
.navigationButtonStyle
|
||||
.frame(width: 80, height: 40)
|
||||
.previewLayout(.fixed(width: 300, height: 100))
|
||||
.preferredColorScheme(.dark)
|
||||
|
||||
Button("Skip") { dump("Example button") }
|
||||
.navigationButtonStyle
|
||||
.frame(width: 80, height: 40)
|
||||
.previewLayout(.fixed(width: 300, height: 100))
|
||||
.preferredColorScheme(.light)
|
||||
}
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
//
|
||||
// PrimaryButton.swift
|
||||
// secant-testnet
|
||||
//
|
||||
// Created by Adam Stener on 10/14/21.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
extension Button {
|
||||
var primaryButtonStyle: some View {
|
||||
buttonStyle(
|
||||
StandardButtonStyle(
|
||||
foregroundColor: Asset.Colors.Text.button.color,
|
||||
background: Asset.Colors.Buttons.primaryButtonPressed.color,
|
||||
pressedBackgroundColor: Asset.Colors.Buttons.primaryButtonPressed.color
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
struct PrimaryButton_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
Button("Primary Button") { dump("Primary button") }
|
||||
.primaryButtonStyle
|
||||
.frame(width: 250, height: 50)
|
||||
.previewLayout(.fixed(width: 300, height: 100))
|
||||
.preferredColorScheme(.light)
|
||||
|
||||
Button("Primary Button") { dump("Primary button") }
|
||||
.primaryButtonStyle
|
||||
.frame(width: 250, height: 50)
|
||||
.previewLayout(.fixed(width: 300, height: 100))
|
||||
.preferredColorScheme(.dark)
|
||||
}
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
//
|
||||
// PrimaryButton.swift
|
||||
// secant-testnet
|
||||
//
|
||||
// Created by Adam Stener on 10/14/21.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
extension Button {
|
||||
var secondaryButtonStyle: some View {
|
||||
buttonStyle(
|
||||
StandardButtonStyle(
|
||||
foregroundColor: Asset.Colors.Text.secondaryButtonText.color,
|
||||
background: Asset.Colors.Buttons.secondaryButton.color,
|
||||
pressedBackgroundColor: Asset.Colors.Buttons.secondaryButtonPressed.color
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
struct SecondaryButton_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
Button("Secondary Button") { dump("Secondary button") }
|
||||
.secondaryButtonStyle
|
||||
.frame(width: 250, height: 50)
|
||||
.previewLayout(.fixed(width: 300, height: 100))
|
||||
.preferredColorScheme(.light)
|
||||
|
||||
Button("Secondary Button") { dump("Secondary button") }
|
||||
.secondaryButtonStyle
|
||||
.frame(width: 250, height: 50)
|
||||
.previewLayout(.fixed(width: 300, height: 100))
|
||||
.preferredColorScheme(.dark)
|
||||
}
|
||||
}
|
|
@ -0,0 +1,52 @@
|
|||
//
|
||||
// ButtonModifier.swift
|
||||
// secant-testnet
|
||||
//
|
||||
// Created by Adam Stener on 10/18/21.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct StandardButtonStyle: ButtonStyle {
|
||||
let foregroundColor: Color
|
||||
let background: Color
|
||||
let pressedBackgroundColor: Color
|
||||
|
||||
func makeBody(configuration: Configuration) -> some View {
|
||||
configuration.label
|
||||
.frame(
|
||||
minWidth: 0,
|
||||
maxWidth: .infinity,
|
||||
minHeight: 0,
|
||||
maxHeight: .infinity
|
||||
)
|
||||
.foregroundColor(foregroundColor)
|
||||
.background(
|
||||
configuration.isPressed ? pressedBackgroundColor : background
|
||||
)
|
||||
.cornerRadius(12)
|
||||
}
|
||||
}
|
||||
|
||||
private extension Button {
|
||||
var exampleButtonStyle: some View {
|
||||
buttonStyle(
|
||||
StandardButtonStyle(
|
||||
foregroundColor: Asset.Colors.Text.button.color,
|
||||
background: Asset.Colors.Buttons.createButton.color,
|
||||
pressedBackgroundColor: Asset.Colors.Buttons.createButtonPressed.color
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
struct ButtonModifier_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
Button("Example Button") { dump("Example button") }
|
||||
.exampleButtonStyle
|
||||
.padding(.horizontal, 25)
|
||||
.frame(height: 75)
|
||||
.previewLayout(.fixed(width: 300, height: 100))
|
||||
.preferredColorScheme(.dark)
|
||||
}
|
||||
}
|
|
@ -0,0 +1,34 @@
|
|||
//
|
||||
// BlueChip.swift
|
||||
// secant-testnet
|
||||
//
|
||||
// Created by Francisco Gindre on 10/25/21.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct BlueChip: View {
|
||||
var word: String
|
||||
var body: some View {
|
||||
Text(word)
|
||||
.font(FontFamily.Rubik.regular.textStyle(.body))
|
||||
.frame(
|
||||
minWidth: 0,
|
||||
maxWidth: 120,
|
||||
minHeight: 30,
|
||||
idealHeight: 40
|
||||
)
|
||||
.foregroundColor(Asset.Colors.Text.activeButtonText.color)
|
||||
.padding(.horizontal, 4)
|
||||
.padding(.vertical, 4)
|
||||
.background(Asset.Colors.Buttons.activeButton.color)
|
||||
.cornerRadius(6)
|
||||
}
|
||||
}
|
||||
|
||||
struct BlueChip_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
BlueChip(word: "negative")
|
||||
.applyScreenBackground()
|
||||
}
|
||||
}
|
|
@ -0,0 +1,60 @@
|
|||
//
|
||||
// EmptyChip.swift
|
||||
// secant-testnet
|
||||
//
|
||||
// Created by Francisco Gindre on 10/22/21.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct EmptyChip: View {
|
||||
var body: some View {
|
||||
RoundedRectangle(cornerRadius: 6, style: RoundedCornerStyle.continuous)
|
||||
.stroke(Asset.Colors.Text.activeButtonText.color, lineWidth: 0.5)
|
||||
.shadow(
|
||||
color: Asset.Colors.Text.activeButtonText.color,
|
||||
radius: -0.5,
|
||||
x: -0.1,
|
||||
y: -0.1
|
||||
)
|
||||
.innerShadow(
|
||||
using: RoundedRectangle(cornerRadius: 6, style: RoundedCornerStyle.continuous),
|
||||
angle: .degrees(180),
|
||||
color: Asset.Colors.Shadow.emptyChipInnerShadow.color,
|
||||
width: 4,
|
||||
blur: 2
|
||||
)
|
||||
.frame(
|
||||
minWidth: 0,
|
||||
maxWidth: .infinity,
|
||||
minHeight: 40,
|
||||
idealHeight: 40,
|
||||
maxHeight: .infinity,
|
||||
alignment: .leading
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
struct EmptyChip_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
Group {
|
||||
ZStack {
|
||||
Asset.Colors.BackgroundColors.phraseGridDarkGray.color
|
||||
EmptyChip()
|
||||
.frame(width: 100, height: 40, alignment: .leading)
|
||||
}
|
||||
}
|
||||
.previewLayout(.fixed(width: 200, height: 100))
|
||||
.preferredColorScheme(.light)
|
||||
|
||||
Group {
|
||||
ZStack {
|
||||
ScreenBackground()
|
||||
EmptyChip()
|
||||
.frame(width: 100, height: 40, alignment: .leading)
|
||||
}
|
||||
}
|
||||
.previewLayout(.fixed(width: 200, height: 100))
|
||||
.preferredColorScheme(.dark)
|
||||
}
|
||||
}
|
|
@ -0,0 +1,148 @@
|
|||
//
|
||||
// EnumeratedChip.swift
|
||||
// secant-testnet
|
||||
//
|
||||
// Created by Francisco Gindre on 10/19/21.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct EnumeratedChip: View {
|
||||
@Clamped(1...24)
|
||||
var index: Int = 1
|
||||
|
||||
var text: String
|
||||
|
||||
var body: some View {
|
||||
NumberedText(number: index, text: text)
|
||||
.frame(
|
||||
minWidth: 0,
|
||||
maxWidth: .infinity,
|
||||
minHeight: 30,
|
||||
idealHeight: 40,
|
||||
maxHeight: .infinity,
|
||||
alignment: .leading
|
||||
)
|
||||
.padding(.horizontal, 16)
|
||||
.padding(.vertical, 4)
|
||||
.background(Asset.Colors.Buttons.primaryButtonPressed.color)
|
||||
.cornerRadius(6)
|
||||
}
|
||||
}
|
||||
|
||||
struct NumberedText: View {
|
||||
var number: Int = 1
|
||||
var text: String
|
||||
|
||||
@ViewBuilder var numberedText: some View {
|
||||
Text(number.superscriptRepresentation)
|
||||
.foregroundColor(Asset.Colors.Text.highlightedSuperscriptText.color)
|
||||
.font(.custom(FontFamily.Roboto.bold.name, size: 20)) +
|
||||
Text(" \(text)")
|
||||
.foregroundColor(Asset.Colors.Text.button.color)
|
||||
.font(.custom(FontFamily.Rubik.medium.name, size: 16))
|
||||
}
|
||||
|
||||
var body: some View {
|
||||
numberedText
|
||||
.shadow(
|
||||
color: Asset.Colors.Shadow.numberedTextShadow.color,
|
||||
radius: 1,
|
||||
x: 0,
|
||||
y: 1
|
||||
)
|
||||
.layoutPriority(1)
|
||||
.fixedSize(horizontal: false, vertical: false)
|
||||
}
|
||||
}
|
||||
|
||||
struct EnumeratedChip_Previews: PreviewProvider {
|
||||
private static var threeColumnGrid = Array(
|
||||
repeating: GridItem(
|
||||
.flexible(minimum: 60, maximum: 120),
|
||||
spacing: 15,
|
||||
alignment: .topLeading
|
||||
),
|
||||
count: 3
|
||||
)
|
||||
|
||||
private static var words = [
|
||||
"pyramid", "negative", "page",
|
||||
"crown", "", "zebra"
|
||||
]
|
||||
|
||||
@ViewBuilder static var grid: some View {
|
||||
LazyVGrid(
|
||||
columns: threeColumnGrid,
|
||||
alignment: .leading,
|
||||
spacing: 15
|
||||
) {
|
||||
ForEach(Array(zip(words.indices, words)), id: \.1) { i, word in
|
||||
if word.isEmpty {
|
||||
EmptyChip()
|
||||
.frame(
|
||||
minWidth: 0,
|
||||
maxWidth: .infinity,
|
||||
minHeight: 30,
|
||||
idealHeight: 40
|
||||
)
|
||||
} else {
|
||||
EnumeratedChip(index: (i + 1), text: word)
|
||||
.frame(
|
||||
minWidth: 0,
|
||||
maxWidth: .infinity,
|
||||
minHeight: 30,
|
||||
idealHeight: 40
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
.padding()
|
||||
}
|
||||
|
||||
static var previews: some View {
|
||||
grid
|
||||
.background(Asset.Colors.BackgroundColors.phraseGridDarkGray.color)
|
||||
.previewLayout(.fixed(width: 428, height: 200))
|
||||
|
||||
grid
|
||||
.applyScreenBackground()
|
||||
.previewLayout(.fixed(width: 428, height: 200))
|
||||
|
||||
grid
|
||||
.applyScreenBackground()
|
||||
.previewLayout(.fixed(width: 428, height: 200))
|
||||
|
||||
grid
|
||||
.applyScreenBackground()
|
||||
.preferredColorScheme(.dark)
|
||||
.previewLayout(.fixed(width: 428, height: 200))
|
||||
|
||||
grid
|
||||
.applyScreenBackground()
|
||||
.previewLayout(.fixed(width: 390, height: 200))
|
||||
|
||||
grid
|
||||
.applyScreenBackground()
|
||||
.preferredColorScheme(.dark)
|
||||
.previewLayout(.fixed(width: 390, height: 200))
|
||||
|
||||
grid
|
||||
.applyScreenBackground()
|
||||
.previewLayout(.fixed(width: 375, height: 200))
|
||||
|
||||
grid
|
||||
.applyScreenBackground()
|
||||
.preferredColorScheme(.dark)
|
||||
.previewLayout(.fixed(width: 375, height: 200))
|
||||
|
||||
grid
|
||||
.applyScreenBackground()
|
||||
.previewLayout(.fixed(width: 320, height: 200))
|
||||
|
||||
grid
|
||||
.applyScreenBackground()
|
||||
.preferredColorScheme(.dark)
|
||||
.previewLayout(.fixed(width: 320, height: 200))
|
||||
}
|
||||
}
|
|
@ -0,0 +1,58 @@
|
|||
//
|
||||
// PhraseChip.swift
|
||||
// secant-testnet
|
||||
//
|
||||
// Created by Francisco Gindre on 10/25/21.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct PhraseChip: View {
|
||||
enum Kind {
|
||||
case empty
|
||||
case unassigned(word: String)
|
||||
case ordered(position: Int, word: String)
|
||||
}
|
||||
|
||||
var kind: Kind
|
||||
|
||||
var body: some View {
|
||||
chipFor(for: kind)
|
||||
.frame(
|
||||
minWidth: 0,
|
||||
maxWidth: 120,
|
||||
minHeight: 30,
|
||||
idealHeight: 40
|
||||
)
|
||||
.animation(.easeIn)
|
||||
}
|
||||
|
||||
@ViewBuilder func chipFor(for kind: Kind) -> some View {
|
||||
switch kind {
|
||||
case .empty:
|
||||
EmptyChip()
|
||||
|
||||
case let .ordered(position, word):
|
||||
EnumeratedChip(index: position, text: word)
|
||||
|
||||
case .unassigned(let word):
|
||||
BlueChip(word: word)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
struct PhraseChip_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
VStack {
|
||||
PhraseChip(kind: .unassigned(word: "negative"))
|
||||
.frame(height: 40)
|
||||
|
||||
PhraseChip(kind: .empty)
|
||||
.frame(height: 40)
|
||||
|
||||
PhraseChip(kind: .ordered(position: 23, word: "mutual"))
|
||||
.frame(height: 40)
|
||||
}
|
||||
.applyScreenBackground()
|
||||
}
|
||||
}
|
|
@ -0,0 +1,169 @@
|
|||
//
|
||||
// DesignGuide.swift
|
||||
// secant-testnet
|
||||
//
|
||||
// Created by Francisco Gindre on 10/18/21.
|
||||
// swiftlint:disable line_length
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct DesignGuide: View {
|
||||
let columns = [GridItem(.adaptive(minimum: 320, maximum: .infinity))]
|
||||
|
||||
var body: some View {
|
||||
ScrollView {
|
||||
LazyVGrid(columns: columns) {
|
||||
TextAndPlaceholdersGuide()
|
||||
SmallVisualElements()
|
||||
ButtonGuide()
|
||||
}
|
||||
}
|
||||
.padding(30)
|
||||
.navigationBarHidden(true)
|
||||
}
|
||||
}
|
||||
|
||||
struct TextAndPlaceholdersGuide: View {
|
||||
var body: some View {
|
||||
VStack(spacing: 30) {
|
||||
Text("H1 Onboarding Rubik Light")
|
||||
.font(FontFamily.Rubik.light.textStyle(.title))
|
||||
.foregroundColor(Asset.Colors.Text.titleText.color)
|
||||
Text(
|
||||
"""
|
||||
Rubik 16 regular #93A4BE Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd
|
||||
"""
|
||||
)
|
||||
.font(FontFamily.Rubik.light.textStyle(.footnote))
|
||||
.fontWeight(.thin)
|
||||
.foregroundColor(Asset.Colors.Text.titleText.color)
|
||||
|
||||
Text("Placeholder for circular view")
|
||||
.frame(width: 370, height: 370, alignment: .center)
|
||||
|
||||
Text("Placeholder for rectangular view")
|
||||
.frame(width: 386, height: 125, alignment: .center)
|
||||
OnboardingProgressViewPreviewHelper()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
struct SmallVisualElements: View {
|
||||
let gridItems = [GridItem(.flexible(minimum: 40, maximum: 100)), GridItem(.flexible(minimum: 40, maximum: 100))]
|
||||
|
||||
var body: some View {
|
||||
VStack {
|
||||
Text("Navigation Buttons")
|
||||
.font(.caption)
|
||||
LazyVGrid(columns: gridItems) {
|
||||
// TODO: Change state to selected
|
||||
Button("Back") { dump("Example button") }
|
||||
.buttonStyle(NavigationButtonStyle())
|
||||
.frame(width: 80, height: 40)
|
||||
Button("Skip") { dump("Example button") }
|
||||
.buttonStyle(NavigationButtonStyle())
|
||||
.frame(width: 80, height: 40)
|
||||
|
||||
Button("Back") { dump("Example button") }
|
||||
.buttonStyle(NavigationButtonStyle())
|
||||
.frame(width: 80, height: 40)
|
||||
Button("Skip") { dump("Example button") }
|
||||
.buttonStyle(NavigationButtonStyle())
|
||||
.frame(width: 80, height: 40)
|
||||
}
|
||||
|
||||
Text("Recovery Phrase Chip")
|
||||
.font(.caption)
|
||||
EnumeratedChip(index: 1, text: "Salami")
|
||||
.frame(width: 100, height: 40)
|
||||
EmptyChip()
|
||||
.frame(width: 100, height: 40)
|
||||
Text("shield icon")
|
||||
.frame(width: 76, height: 76)
|
||||
Text("profile icon")
|
||||
.frame(width: 76, height: 76)
|
||||
Text("listing icon")
|
||||
.frame(width: 76, height: 76)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
struct ButtonGuide: View {
|
||||
let buttonHeight: CGFloat = 60
|
||||
|
||||
var body: some View {
|
||||
VStack(spacing: 30) {
|
||||
// Idle Primary Button
|
||||
Button(action: {}) {
|
||||
Text("Primary Button")
|
||||
}
|
||||
.primaryButtonStyle
|
||||
.frame(height: buttonHeight)
|
||||
|
||||
// TODO: Pressed Primary Button
|
||||
Button(action: {}) {
|
||||
Text("Primary Button")
|
||||
}
|
||||
.primaryButtonStyle
|
||||
.frame(height: buttonHeight)
|
||||
|
||||
// Disabled Primary Button
|
||||
Button(action: {}) {
|
||||
Text("Primary Button")
|
||||
}
|
||||
.primaryButtonStyle
|
||||
.frame(height: buttonHeight)
|
||||
.disabled(true)
|
||||
|
||||
// Idle Primary Action Button
|
||||
Button(action: {}) {
|
||||
Text("Primary Active Button")
|
||||
}
|
||||
.createButtonStyle
|
||||
.frame(height: buttonHeight)
|
||||
|
||||
// TODO: Pressed Primary Action Button
|
||||
Button(action: {}) {
|
||||
Text("Primary Active Button")
|
||||
}
|
||||
.createButtonStyle
|
||||
.frame(height: buttonHeight)
|
||||
|
||||
// TODO: Pressed Primary Action Button
|
||||
Button(action: {}) {
|
||||
Text("Primary Active Button")
|
||||
}
|
||||
.createButtonStyle
|
||||
.frame(height: buttonHeight)
|
||||
|
||||
// Idle Secondary Button
|
||||
Button(action: {}) {
|
||||
Text("Secondary Button")
|
||||
}
|
||||
.secondaryButtonStyle
|
||||
.frame(height: buttonHeight)
|
||||
|
||||
// Action Button
|
||||
Button(action: {}) {
|
||||
Text("Action Button")
|
||||
}
|
||||
.activeButtonStyle
|
||||
.frame(height: buttonHeight)
|
||||
Spacer()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
struct DesignGuide_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
DesignGuide()
|
||||
.applyScreenBackground()
|
||||
.preferredColorScheme(.dark)
|
||||
.previewLayout(.fixed(width: 420, height: 1080))
|
||||
|
||||
DesignGuide()
|
||||
.applyScreenBackground()
|
||||
.preferredColorScheme(.light)
|
||||
.previewLayout(.fixed(width: 1086, height: 1080))
|
||||
}
|
||||
}
|
|
@ -0,0 +1,33 @@
|
|||
//
|
||||
// View+InnerShadow.swift
|
||||
// secant-testnet
|
||||
//
|
||||
// Created by Francisco Gindre on 10/22/21.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
extension View {
|
||||
/**
|
||||
drops an inner shadow with the given shape in the receiving view.
|
||||
Credits: https://www.hackingwithswift.com/plus/swiftui-special-effects/shadows-and-glows
|
||||
*/
|
||||
func innerShadow<S: Shape>(
|
||||
using shape: S,
|
||||
angle: Angle = .degrees(0),
|
||||
color: Color = .black,
|
||||
width: CGFloat = 6,
|
||||
blur: CGFloat = 6
|
||||
) -> some View {
|
||||
let finalX = CGFloat(cos(angle.radians - .pi / 2))
|
||||
let finalY = CGFloat(sin(angle.radians - .pi / 2))
|
||||
return self
|
||||
.overlay(
|
||||
shape
|
||||
.stroke(color, lineWidth: width)
|
||||
.offset(x: finalX * width * 0.6, y: finalY * width * 0.6)
|
||||
.blur(radius: blur)
|
||||
.mask(shape)
|
||||
)
|
||||
}
|
||||
}
|
|
@ -0,0 +1,98 @@
|
|||
//
|
||||
// OnboardingProgressIndicator.swift
|
||||
// secant-testnet
|
||||
//
|
||||
// Created by Adam Stener on 10/15/21.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct OnboardingProgressStyle: ProgressViewStyle {
|
||||
let height: CGFloat = 3
|
||||
let animation: Animation = .easeInOut
|
||||
let gradient = LinearGradient(
|
||||
colors: [
|
||||
Asset.Colors.ProgressIndicator.gradientLeft.color,
|
||||
Asset.Colors.ProgressIndicator.gradientRight.color
|
||||
],
|
||||
startPoint: UnitPoint(x: 0.00, y: 0.00),
|
||||
endPoint: UnitPoint(x: 1.00, y: 0.00)
|
||||
)
|
||||
|
||||
func makeBody(configuration: Configuration) -> some View {
|
||||
let fractionCompleted = configuration.fractionCompleted ?? 0
|
||||
|
||||
return VStack {
|
||||
HStack {
|
||||
configuration.label
|
||||
.foregroundColor(Asset.Colors.ProgressIndicator.negativeSpace.color)
|
||||
|
||||
Spacer()
|
||||
}
|
||||
|
||||
ZStack {
|
||||
GeometryReader { proxy in
|
||||
let currentWidth = proxy.size.width
|
||||
let progressMaxWidth = currentWidth * CGFloat(fractionCompleted)
|
||||
let trailingMaxWidth = currentWidth - (currentWidth * CGFloat(fractionCompleted))
|
||||
|
||||
HStack(spacing: 15) {
|
||||
if fractionCompleted > 0 {
|
||||
Capsule()
|
||||
.fill(gradient)
|
||||
.frame(maxWidth: progressMaxWidth)
|
||||
}
|
||||
|
||||
if fractionCompleted < 1 {
|
||||
Capsule()
|
||||
.fill(Asset.Colors.ProgressIndicator.negativeSpace.color)
|
||||
.frame(maxWidth: trailingMaxWidth)
|
||||
}
|
||||
}
|
||||
}
|
||||
.frame(height: height)
|
||||
.animation(animation)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - ProgressView : onboardingProgressStyle
|
||||
|
||||
extension ProgressView {
|
||||
var onboardingProgressStyle: some View {
|
||||
progressViewStyle(OnboardingProgressStyle())
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - Interactive ProgressStyle View
|
||||
|
||||
struct OnboardingProgressViewPreviewHelper: View {
|
||||
@State private var value: CGFloat = 35.0
|
||||
|
||||
var progressString: String {
|
||||
String(format: "%02d", value)
|
||||
}
|
||||
|
||||
var body: some View {
|
||||
VStack(spacing: 50) {
|
||||
ProgressView(
|
||||
"\(Int(value))",
|
||||
value: value,
|
||||
total: 100
|
||||
)
|
||||
.onboardingProgressStyle
|
||||
|
||||
Slider(value: $value, in: 0...100, step: 1)
|
||||
}
|
||||
.padding(.horizontal)
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - Previews
|
||||
|
||||
struct OnboardingProgressIndicator_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
OnboardingProgressViewPreviewHelper()
|
||||
}
|
||||
}
|
|
@ -1,62 +0,0 @@
|
|||
//
|
||||
// PlainButton.swift
|
||||
// secant
|
||||
//
|
||||
// Created by Francisco Gindre on 8/9/21.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct PlainButton: ButtonStyle {
|
||||
enum Theme {
|
||||
case light
|
||||
case bold
|
||||
}
|
||||
|
||||
var style = Theme.bold
|
||||
|
||||
func makeBody(configuration: Configuration) -> some View {
|
||||
configuration.label
|
||||
.foregroundColor(style.foregroundColor)
|
||||
.padding()
|
||||
.frame(minWidth: 0, maxWidth: .infinity, minHeight: 48, maxHeight: 48)
|
||||
.background(style.background)
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - Previews
|
||||
|
||||
struct PlainButton_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
VStack {
|
||||
Button(action: {}, label: {
|
||||
Text("Button")
|
||||
})
|
||||
.buttonStyle(PlainButton())
|
||||
|
||||
Button(action: {}, label: {
|
||||
Text("Button")
|
||||
})
|
||||
.buttonStyle(PlainButton(style: .bold))
|
||||
}
|
||||
.padding(.horizontal, 30)
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - Theme
|
||||
|
||||
extension PlainButton.Theme {
|
||||
var background: some View {
|
||||
switch self {
|
||||
case .bold: return Color.black
|
||||
default: return Color.white
|
||||
}
|
||||
}
|
||||
|
||||
var foregroundColor: Color {
|
||||
switch self {
|
||||
case .bold: return Color.white
|
||||
default: return Color.black
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,55 @@
|
|||
//
|
||||
// ScreenBackground.swift
|
||||
// secant-testnet
|
||||
//
|
||||
// Created by Francisco Gindre on 10/18/21.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
/**
|
||||
A Vertical LinearGradient that takes an array of Colors and renders them vertically in a centered fashion mostly used as a background for Screen views..
|
||||
*/
|
||||
struct ScreenBackground: View {
|
||||
var colors = [
|
||||
Asset.Colors.ScreenBackground.gradientStart.color,
|
||||
Asset.Colors.ScreenBackground.gradientEnd.color
|
||||
]
|
||||
var body: some View {
|
||||
LinearGradient(
|
||||
colors: colors,
|
||||
startPoint: UnitPoint(x: 0.5, y: 0),
|
||||
endPoint: UnitPoint(x: 0.5, y: 1)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
struct ScreenBackgroundModifier: ViewModifier {
|
||||
func body(content: Content) -> some View {
|
||||
ZStack {
|
||||
ScreenBackground()
|
||||
.edgesIgnoringSafeArea(.all)
|
||||
content
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
extension View {
|
||||
/**
|
||||
Adds a Vertical Linear Gradient with the default Colors of VLinearGradient. Supports both Light and Dark Mode
|
||||
*/
|
||||
func applyScreenBackground() -> some View {
|
||||
self.modifier(
|
||||
ScreenBackgroundModifier()
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
struct ScreenBackground_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
VStack {
|
||||
Text("Hello")
|
||||
}
|
||||
.applyScreenBackground()
|
||||
.preferredColorScheme(.light)
|
||||
}
|
||||
}
|
|
@ -0,0 +1,31 @@
|
|||
//
|
||||
// Clamped.swift
|
||||
// secant-testnet
|
||||
//
|
||||
// Created by Francisco Gindre on 10/20/21.
|
||||
//
|
||||
// credits: https://iteo.medium.com/swift-property-wrappers-how-to-use-them-right-77095817d1b
|
||||
import Foundation
|
||||
|
||||
/**
|
||||
Limits a value to an enclosing range
|
||||
*/
|
||||
@propertyWrapper
|
||||
struct Clamped<Value: Comparable> {
|
||||
var value: Value
|
||||
let range: ClosedRange<Value>
|
||||
var wrappedValue: Value {
|
||||
get { value }
|
||||
set {
|
||||
value = min(
|
||||
max(range.lowerBound, newValue),
|
||||
range.upperBound
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
init(wrappedValue: Value, _ range: ClosedRange<Value>) {
|
||||
self.value = wrappedValue
|
||||
self.range = range
|
||||
}
|
||||
}
|
|
@ -0,0 +1,40 @@
|
|||
//
|
||||
// UInt+SuperscriptText.swift
|
||||
// secant-testnet
|
||||
//
|
||||
// Created by Francisco Gindre on 10/20/21.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
extension Int {
|
||||
private func toScalarSuperscript() -> String {
|
||||
precondition(self >= 0 && self <= 9)
|
||||
return [
|
||||
"\u{2070}", // 0
|
||||
"\u{00B9}", // 1
|
||||
"\u{00B2}", // 2
|
||||
"\u{00B3}", // 3
|
||||
"\u{2074}", // 4
|
||||
"\u{2075}", // 5
|
||||
"\u{2076}", // 6
|
||||
"\u{2077}", // 7
|
||||
"\u{2078}", // 8
|
||||
"\u{2079}" // 9
|
||||
][Int(self)]
|
||||
}
|
||||
|
||||
/**
|
||||
Returns a superscript string representation this unsigned integer using Unicode Scalars
|
||||
*/
|
||||
var superscriptRepresentation: String {
|
||||
precondition(self >= 0)
|
||||
var number = self
|
||||
var superscript = ""
|
||||
repeat {
|
||||
superscript = (number % 10).toScalarSuperscript() + superscript
|
||||
number /= 10
|
||||
} while number > 0
|
||||
return superscript
|
||||
}
|
||||
}
|
|
@ -9,25 +9,88 @@ import XCTest
|
|||
@testable import secant_testnet
|
||||
|
||||
class SecantTests: XCTestCase {
|
||||
override func setUp() {
|
||||
super.setUp()
|
||||
// Put setup code here. This method is called before the invocation of each test method in the class.
|
||||
}
|
||||
|
||||
override func tearDown() {
|
||||
super.tearDown()
|
||||
// Put teardown code here. This method is called after the invocation of each test method in the class.
|
||||
}
|
||||
|
||||
func testExample() throws {
|
||||
// This is an example of a functional test case.
|
||||
// Use XCTAssert and related functions to verify your tests produce the correct results.
|
||||
}
|
||||
|
||||
func testPerformanceExample() throws {
|
||||
// This is an example of a performance test case.
|
||||
self.measure {
|
||||
// Put the code you want to measure the time of here.
|
||||
}
|
||||
func testSubscriptRepresentation() throws {
|
||||
XCTAssertEqual(Int(0).superscriptRepresentation, "\u{2070}")
|
||||
XCTAssertEqual(Int(1).superscriptRepresentation, "\u{00B9}")
|
||||
XCTAssertEqual(Int(11).superscriptRepresentation, "\u{00B9}\u{00B9}")
|
||||
XCTAssertEqual(Int(111).superscriptRepresentation, "\u{00B9}\u{00B9}\u{00B9}")
|
||||
XCTAssertEqual(Int(2).superscriptRepresentation, "\u{00B2}")
|
||||
XCTAssertEqual(Int(22).superscriptRepresentation, "\u{00B2}\u{00B2}")
|
||||
XCTAssertEqual(Int(222).superscriptRepresentation, "\u{00B2}\u{00B2}\u{00B2}")
|
||||
XCTAssertEqual(Int(12).superscriptRepresentation, "\u{00B9}\u{00B2}")
|
||||
XCTAssertEqual(Int(3).superscriptRepresentation, "\u{00B3}")
|
||||
XCTAssertEqual(Int(33).superscriptRepresentation, "\u{00B3}\u{00B3}")
|
||||
XCTAssertEqual(Int(333).superscriptRepresentation, "\u{00B3}\u{00B3}\u{00B3}")
|
||||
XCTAssertEqual(Int(123).superscriptRepresentation, "\u{00B9}\u{00B2}\u{00B3}")
|
||||
XCTAssertEqual(Int(4).superscriptRepresentation, "\u{2074}")
|
||||
XCTAssertEqual(Int(5).superscriptRepresentation, "\u{2075}")
|
||||
XCTAssertEqual(Int(6).superscriptRepresentation, "\u{2076}")
|
||||
XCTAssertEqual(Int(7).superscriptRepresentation, "\u{2077}")
|
||||
XCTAssertEqual(Int(8).superscriptRepresentation, "\u{2078}")
|
||||
XCTAssertEqual(Int(9).superscriptRepresentation, "\u{2079}")
|
||||
XCTAssertEqual(
|
||||
Int(10).superscriptRepresentation,
|
||||
Int(1).superscriptRepresentation + Int(0).superscriptRepresentation
|
||||
)
|
||||
XCTAssertEqual(
|
||||
Int(100).superscriptRepresentation,
|
||||
Int(1).superscriptRepresentation + Int(0).superscriptRepresentation + Int(0).superscriptRepresentation
|
||||
)
|
||||
XCTAssertEqual(
|
||||
Int(11).superscriptRepresentation,
|
||||
Int(1).superscriptRepresentation + Int(1).superscriptRepresentation
|
||||
)
|
||||
XCTAssertEqual(
|
||||
Int(12).superscriptRepresentation,
|
||||
Int(1).superscriptRepresentation + Int(2).superscriptRepresentation
|
||||
)
|
||||
XCTAssertEqual(
|
||||
Int(13).superscriptRepresentation,
|
||||
Int(1).superscriptRepresentation + Int(3).superscriptRepresentation
|
||||
)
|
||||
XCTAssertEqual(
|
||||
Int(14).superscriptRepresentation,
|
||||
Int(1).superscriptRepresentation + Int(4).superscriptRepresentation
|
||||
)
|
||||
XCTAssertEqual(
|
||||
Int(15).superscriptRepresentation,
|
||||
Int(1).superscriptRepresentation + Int(5).superscriptRepresentation
|
||||
)
|
||||
XCTAssertEqual(
|
||||
Int(16).superscriptRepresentation,
|
||||
Int(1).superscriptRepresentation + Int(6).superscriptRepresentation
|
||||
)
|
||||
XCTAssertEqual(
|
||||
Int(17).superscriptRepresentation,
|
||||
Int(1).superscriptRepresentation + Int(7).superscriptRepresentation
|
||||
)
|
||||
XCTAssertEqual(
|
||||
Int(18).superscriptRepresentation,
|
||||
Int(1).superscriptRepresentation + Int(8).superscriptRepresentation
|
||||
)
|
||||
XCTAssertEqual(
|
||||
Int(19).superscriptRepresentation,
|
||||
Int(1).superscriptRepresentation + Int(9).superscriptRepresentation
|
||||
)
|
||||
XCTAssertEqual(
|
||||
Int(20).superscriptRepresentation,
|
||||
Int(2).superscriptRepresentation + Int(0).superscriptRepresentation
|
||||
)
|
||||
XCTAssertEqual(
|
||||
Int(21).superscriptRepresentation,
|
||||
Int(2).superscriptRepresentation + Int(1).superscriptRepresentation
|
||||
)
|
||||
XCTAssertEqual(
|
||||
Int(22).superscriptRepresentation,
|
||||
Int(2).superscriptRepresentation + Int(2).superscriptRepresentation
|
||||
)
|
||||
XCTAssertEqual(
|
||||
Int(23).superscriptRepresentation,
|
||||
Int(2).superscriptRepresentation + Int(3).superscriptRepresentation
|
||||
)
|
||||
XCTAssertEqual(
|
||||
Int(24).superscriptRepresentation,
|
||||
Int(2).superscriptRepresentation + Int(4).superscriptRepresentation
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,6 +14,8 @@ xcassets:
|
|||
fonts:
|
||||
inputs:
|
||||
- Fonts/Zboto.otf
|
||||
- Fonts/Rubik
|
||||
- Fonts/Roboto
|
||||
outputs:
|
||||
templatePath: Templates/fonts/fonts_swift5_swiftui.stencil
|
||||
output: Fonts+Generated.swift
|
||||
|
|
Loading…
Reference in New Issue