Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ABW-3213] Address Details #1100

Merged
merged 48 commits into from
Jul 4, 2024
Merged
Show file tree
Hide file tree
Changes from 37 commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
fd6ecfb
WIP
matiasbzurovski Apr 22, 2024
43419d8
Create new AccountAddressView and update AddressView logic
matiasbzurovski Apr 22, 2024
135a774
everyone is a @MainActor
matiasbzurovski Apr 22, 2024
6d1d3f3
More components added to AccountAddressView
matiasbzurovski Apr 22, 2024
b003a5a
Add brand1 gradient
matiasbzurovski Apr 23, 2024
ddb54f4
Add gradient address
matiasbzurovski Apr 23, 2024
911c379
Use gray2 on iOS 16
matiasbzurovski Apr 23, 2024
afcad87
Remove long pressure from AddressView
matiasbzurovski Apr 23, 2024
5fc8cdf
Support for copy and share actions
matiasbzurovski Apr 23, 2024
ab12311
Add enlarged view
matiasbzurovski Apr 23, 2024
d1384be
Renamed AddressDetailView
matiasbzurovski Apr 24, 2024
963712f
Allow verification of account on ledger
matiasbzurovski Apr 24, 2024
f26657f
Load title
matiasbzurovski Apr 24, 2024
0912921
use correct title for resources
matiasbzurovski Apr 24, 2024
b24bcfa
Adapt padding and spacing
matiasbzurovski Apr 24, 2024
4f6b82a
lint
matiasbzurovski Apr 24, 2024
379bdff
Final details
matiasbzurovski Apr 24, 2024
1e7f83f
Get hidden part only
matiasbzurovski Apr 24, 2024
4e26429
Get middle of address from Sargon
matiasbzurovski Apr 25, 2024
73c1481
Update Sargon dependency
matiasbzurovski Apr 25, 2024
1dfd025
Using Reducer
matiasbzurovski Apr 25, 2024
6e2e28f
Merge branch 'main' into ABW-3213
matiasbzurovski Apr 26, 2024
5730aad
Use localisation strings
matiasbzurovski Apr 26, 2024
7152057
Use always the copy icon on AddressView
matiasbzurovski Apr 26, 2024
fe5859d
Use Address.nonFungibleGlobalId for NFTs (pending fix on colorisation)
matiasbzurovski Apr 26, 2024
3b68253
Show compacted text on non fungible global id
matiasbzurovski Apr 29, 2024
32a0001
Remove LedgerIdentifiable.identifier and have .transaction instead
matiasbzurovski Apr 29, 2024
427f39d
Merge branch 'main' into ABW-3213
matiasbzurovski May 7, 2024
17aea33
Fixes after merge
matiasbzurovski May 7, 2024
00dd73b
Merge branch 'main' into ABW-3213
matiasbzurovski May 13, 2024
a9b6ce2
Update Account preferences to show card
matiasbzurovski May 13, 2024
099b43f
Remove unused logic from AccountPreferences
matiasbzurovski May 13, 2024
8b64e2e
Merge branch 'main' into ABW-3213
matiasbzurovski May 29, 2024
25aab9a
Merge branch 'main' into ABW-3213
matiasbzurovski Jun 5, 2024
ce6f16d
Merge branch 'main' into ABW-3213
matiasbzurovski Jun 24, 2024
b320e53
Fix for global ids
matiasbzurovski Jun 25, 2024
ed733f0
Compute only once
matiasbzurovski Jun 25, 2024
d6de04e
Simplify dismiss
matiasbzurovski Jun 28, 2024
0a2a19b
Changes after feedback
matiasbzurovski Jun 28, 2024
033ccd5
Use observable
matiasbzurovski Jun 28, 2024
452be2c
Last fixes
matiasbzurovski Jul 1, 2024
4801e6b
Merge branch 'main' into ABW-3213
matiasbzurovski Jul 1, 2024
48e4eaa
Sargon
matiasbzurovski Jul 1, 2024
7516f98
Show local part for NFT ids
matiasbzurovski Jul 1, 2024
3a29de0
Merge branch 'main' into ABW-3213
matiasbzurovski Jul 3, 2024
f1e0ce4
Fix colorised text for Global ids whose local id was part of the reso…
matiasbzurovski Jul 3, 2024
33b49b7
Final changes
matiasbzurovski Jul 3, 2024
130a2cd
await task
matiasbzurovski Jul 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 12 additions & 16 deletions RadixWallet.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,6 @@
48CFC3542ADC10D900E77A5C /* DappInteractor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 48CFBE1B2ADC10D800E77A5C /* DappInteractor.swift */; };
48CFC3552ADC10D900E77A5C /* ImportOlympiaLedgerAccountsAndFactorSources+View.swift in Sources */ = {isa = PBXBuildFile; fileRef = 48CFBE1D2ADC10D800E77A5C /* ImportOlympiaLedgerAccountsAndFactorSources+View.swift */; };
48CFC3562ADC10D900E77A5C /* ImportOlympiaLedgerAccountsAndFactorSources.swift in Sources */ = {isa = PBXBuildFile; fileRef = 48CFBE1E2ADC10D800E77A5C /* ImportOlympiaLedgerAccountsAndFactorSources.swift */; };
48CFC3572ADC10D900E77A5C /* ShowQR+Reducer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 48CFBE202ADC10D800E77A5C /* ShowQR+Reducer.swift */; };
48CFC3582ADC10D900E77A5C /* ShowQR+View.swift in Sources */ = {isa = PBXBuildFile; fileRef = 48CFBE212ADC10D800E77A5C /* ShowQR+View.swift */; };
48CFC3612ADC10D900E77A5C /* LedgerHardwareDevices+View.swift in Sources */ = {isa = PBXBuildFile; fileRef = 48CFBE312ADC10D800E77A5C /* LedgerHardwareDevices+View.swift */; };
48CFC3622ADC10D900E77A5C /* LedgerHardwareDevices+Reducer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 48CFBE322ADC10D800E77A5C /* LedgerHardwareDevices+Reducer.swift */; };
48CFC3632ADC10D900E77A5C /* AssetsView+Reducer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 48CFBE342ADC10D800E77A5C /* AssetsView+Reducer.swift */; };
Expand Down Expand Up @@ -882,6 +880,8 @@
5B1C4FDA2BBB0DCF00B9436F /* AppsFlyerClient+Live.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5B1C4FD92BBB0DCF00B9436F /* AppsFlyerClient+Live.swift */; };
5B2A45022BD6680400AEC8AD /* ContactSupportClient.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5B2A45012BD6680400AEC8AD /* ContactSupportClient.swift */; };
5B2A45042BD6689100AEC8AD /* ContactSupportClient+Live.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5B2A45032BD6689100AEC8AD /* ContactSupportClient+Live.swift */; };
5B43B08B2BDAAD4B00AA1E92 /* AddressDetails+View.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5B43B0892BDAAD4B00AA1E92 /* AddressDetails+View.swift */; };
5B43B08C2BDAAD4B00AA1E92 /* AddressDetails.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5B43B08A2BDAAD4B00AA1E92 /* AddressDetails.swift */; };
5B45E2FA2BC45770007C4C84 /* FactorSourceAccess+View.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5B45E2F82BC45770007C4C84 /* FactorSourceAccess+View.swift */; };
5B45E2FB2BC45770007C4C84 /* FactorSourceAccess.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5B45E2F92BC45770007C4C84 /* FactorSourceAccess.swift */; };
5B45E2FE2BC59780007C4C84 /* SignWithFactorSource+View.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5B45E2FC2BC59780007C4C84 /* SignWithFactorSource+View.swift */; };
Expand All @@ -896,6 +896,7 @@
5B758D582BCE7AEC00348722 /* Preferences.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5B758D562BCE7AEC00348722 /* Preferences.swift */; };
5B758D5C2BCEC3B200348722 /* Troubleshooting+View.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5B758D5A2BCEC3B200348722 /* Troubleshooting+View.swift */; };
5B758D5D2BCEC3B200348722 /* Troubleshooting.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5B758D5B2BCEC3B200348722 /* Troubleshooting.swift */; };
5B96DD372BD917B300722882 /* Text+Extra.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5B96DD362BD917B300722882 /* Text+Extra.swift */; };
5B77D7B42C0DFE8300F5F215 /* EntitySecurityProblemsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5B77D7B12C0DFE8300F5F215 /* EntitySecurityProblemsView.swift */; };
5B9846BD2BBD5C8800E814F3 /* SensitiveInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 5B9846BC2BBD5C8800E814F3 /* SensitiveInfo.plist */; };
5B9846C02BBD5F0800E814F3 /* SensitiveInfoClient+Interface.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5B9846BF2BBD5F0800E814F3 /* SensitiveInfoClient+Interface.swift */; };
Expand Down Expand Up @@ -1442,8 +1443,6 @@
48CFBE1B2ADC10D800E77A5C /* DappInteractor.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DappInteractor.swift; sourceTree = "<group>"; };
48CFBE1D2ADC10D800E77A5C /* ImportOlympiaLedgerAccountsAndFactorSources+View.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "ImportOlympiaLedgerAccountsAndFactorSources+View.swift"; sourceTree = "<group>"; };
48CFBE1E2ADC10D800E77A5C /* ImportOlympiaLedgerAccountsAndFactorSources.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ImportOlympiaLedgerAccountsAndFactorSources.swift; sourceTree = "<group>"; };
48CFBE202ADC10D800E77A5C /* ShowQR+Reducer.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "ShowQR+Reducer.swift"; sourceTree = "<group>"; };
48CFBE212ADC10D800E77A5C /* ShowQR+View.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "ShowQR+View.swift"; sourceTree = "<group>"; };
48CFBE312ADC10D800E77A5C /* LedgerHardwareDevices+View.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "LedgerHardwareDevices+View.swift"; sourceTree = "<group>"; };
48CFBE322ADC10D800E77A5C /* LedgerHardwareDevices+Reducer.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "LedgerHardwareDevices+Reducer.swift"; sourceTree = "<group>"; };
48CFBE342ADC10D800E77A5C /* AssetsView+Reducer.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "AssetsView+Reducer.swift"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -2002,6 +2001,8 @@
5B1C4FD92BBB0DCF00B9436F /* AppsFlyerClient+Live.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "AppsFlyerClient+Live.swift"; sourceTree = "<group>"; };
5B2A45012BD6680400AEC8AD /* ContactSupportClient.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContactSupportClient.swift; sourceTree = "<group>"; };
5B2A45032BD6689100AEC8AD /* ContactSupportClient+Live.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "ContactSupportClient+Live.swift"; sourceTree = "<group>"; };
5B43B0892BDAAD4B00AA1E92 /* AddressDetails+View.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "AddressDetails+View.swift"; sourceTree = "<group>"; };
5B43B08A2BDAAD4B00AA1E92 /* AddressDetails.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AddressDetails.swift; sourceTree = "<group>"; };
5B45E2F82BC45770007C4C84 /* FactorSourceAccess+View.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "FactorSourceAccess+View.swift"; sourceTree = "<group>"; };
5B45E2F92BC45770007C4C84 /* FactorSourceAccess.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FactorSourceAccess.swift; sourceTree = "<group>"; };
5B45E2FC2BC59780007C4C84 /* SignWithFactorSource+View.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "SignWithFactorSource+View.swift"; sourceTree = "<group>"; };
Expand All @@ -2016,6 +2017,7 @@
5B758D562BCE7AEC00348722 /* Preferences.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Preferences.swift; sourceTree = "<group>"; };
5B758D5A2BCEC3B200348722 /* Troubleshooting+View.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Troubleshooting+View.swift"; sourceTree = "<group>"; };
5B758D5B2BCEC3B200348722 /* Troubleshooting.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Troubleshooting.swift; sourceTree = "<group>"; };
5B96DD362BD917B300722882 /* Text+Extra.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Text+Extra.swift"; sourceTree = "<group>"; };
5B77D7B12C0DFE8300F5F215 /* EntitySecurityProblemsView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = EntitySecurityProblemsView.swift; sourceTree = "<group>"; };
5B9846BC2BBD5C8800E814F3 /* SensitiveInfo.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = SensitiveInfo.plist; sourceTree = "<group>"; };
5B9846BF2BBD5F0800E814F3 /* SensitiveInfoClient+Interface.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "SensitiveInfoClient+Interface.swift"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -2520,7 +2522,6 @@
48CFBDEB2ADC10D800E77A5C /* FeaturesPreviewer */,
48CFBDF42ADC10D800E77A5C /* DappInteractionFeature */,
48CFBE1C2ADC10D800E77A5C /* ImportOlympiaLedgerAccountsAndFactorSources */,
48CFBE1F2ADC10D800E77A5C /* ShowQRFeature */,
48CFBE302ADC10D800E77A5C /* LedgerHardwareDevices */,
48CFBE332ADC10D800E77A5C /* AssetsFeature */,
48CFBE682ADC10D800E77A5C /* DisplayEntitiesControlledByMnemonic */,
Expand Down Expand Up @@ -3768,15 +3769,6 @@
path = ImportOlympiaLedgerAccountsAndFactorSources;
sourceTree = "<group>";
};
48CFBE1F2ADC10D800E77A5C /* ShowQRFeature */ = {
isa = PBXGroup;
children = (
48CFBE202ADC10D800E77A5C /* ShowQR+Reducer.swift */,
48CFBE212ADC10D800E77A5C /* ShowQR+View.swift */,
);
path = ShowQRFeature;
sourceTree = "<group>";
};
48CFBE302ADC10D800E77A5C /* LedgerHardwareDevices */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -5018,6 +5010,7 @@
48CFC0F02ADC10D900E77A5C /* Label+Extra.swift */,
48CFC0F12ADC10D900E77A5C /* Binding+Extra.swift */,
48CFC0F22ADC10D900E77A5C /* Stroke.swift */,
5B96DD362BD917B300722882 /* Text+Extra.swift */,
);
path = Extensions;
sourceTree = "<group>";
Expand Down Expand Up @@ -5138,6 +5131,8 @@
isa = PBXGroup;
children = (
48CFC1432ADC10D900E77A5C /* AddressView.swift */,
5B43B0892BDAAD4B00AA1E92 /* AddressDetails+View.swift */,
5B43B08A2BDAAD4B00AA1E92 /* AddressDetails.swift */,
);
path = AddressView;
sourceTree = "<group>";
Expand Down Expand Up @@ -6778,6 +6773,7 @@
48CFC4332ADC10DA00E77A5C /* Either+Extra.swift in Sources */,
48CFC2C72ADC10D900E77A5C /* MessageMode+View.swift in Sources */,
E6FA984A2B04B9AC00748F20 /* ConfirmSkippingBDFS+View.swift in Sources */,
5B96DD372BD917B300722882 /* Text+Extra.swift in Sources */,
48CFC57F2ADC10DA00E77A5C /* GatewayAPI.swift in Sources */,
488A42F42BCAFD4200F285BC /* AccountsRecoveredFromScanning.swift in Sources */,
48CFC4702ADC10DA00E77A5C /* URLFormatterClient+Live.swift in Sources */,
Expand Down Expand Up @@ -7067,7 +7063,6 @@
83EE47952AF0EE3C00155F03 /* ProgrammaticScryptoSborValueDecimal.swift in Sources */,
E6FA984B2B04B9AC00748F20 /* ConfirmSkippingBDFS.swift in Sources */,
48CFC25F2ADC10D900E77A5C /* EditPersonaName+View.swift in Sources */,
48CFC3582ADC10D900E77A5C /* ShowQR+View.swift in Sources */,
48CFC4542ADC10DA00E77A5C /* QRGeneratorClient+Live.swift in Sources */,
48CFC2C32ADC10D900E77A5C /* ChooseReceivingAccount+Reducer.swift in Sources */,
4855B1B02BCA5E3100DD0A47 /* Stage1MigrateToSargon+DisplayName.swift in Sources */,
Expand Down Expand Up @@ -7359,6 +7354,8 @@
48CFC2CA2ADC10D900E77A5C /* NonFungibleResourceAsset+Reducer+View.swift in Sources */,
48CFC4B72ADC10DA00E77A5C /* TransactionPreviewResponse.swift in Sources */,
48CFC3452ADC10D900E77A5C /* Completion+View.swift in Sources */,
5B43B08B2BDAAD4B00AA1E92 /* AddressDetails+View.swift in Sources */,
5B43B08C2BDAAD4B00AA1E92 /* AddressDetails.swift in Sources */,
48CFC3682ADC10D900E77A5C /* NonFungibleAssetRow+View.swift in Sources */,
48CFC3392ADC10D900E77A5C /* FeaturesPreviewer.swift in Sources */,
48CFC4E32ADC10DA00E77A5C /* MetadataDecimalValue.swift in Sources */,
Expand Down Expand Up @@ -7448,7 +7445,6 @@
48CFC5C62ADC10DA00E77A5C /* ApprovalSlider.swift in Sources */,
83EE5EF22BE3C16F00B1531D /* StateAccountResourcePreferencesPageRequest.swift in Sources */,
A4EB37C82B6272F3003FE31D /* TrackedValidatorInteraction.swift in Sources */,
48CFC3572ADC10D900E77A5C /* ShowQR+Reducer.swift in Sources */,
83EE5EE02BE3C16F00B1531D /* AccountDepositPreValidationDecidingFactors.swift in Sources */,
48CFC5D02ADC10DA00E77A5C /* LabelledDate.swift in Sources */,
830EA9E92AEBA7C5004C8051 /* EntitiesVisibilityClient+Test.swift in Sources */,
Expand Down
2 changes: 1 addition & 1 deletion RadixWallet/Clients/GatewayAPI/GatewayAPI+Utils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ extension GatewayAPI.StateEntityDetailsResponseItemDetails {
}

// MARK: - EntityMetadataKey
public enum EntityMetadataKey: String, CaseIterable {
public enum EntityMetadataKey: String, CaseIterable, Sendable {
case name
case symbol
case description
Expand Down
4 changes: 3 additions & 1 deletion RadixWallet/Core/DesignSystem/Components/CloseButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ public struct CloseButton: View {
extension CloseButton {
public var body: some View {
Button(action: action) {
Image(asset: AssetResource.close).tint(.app.gray1)
Image(.close)
.foregroundColor(.app.gray1)
.tint(.app.gray1)
}
.frame(.small)
}
Expand Down
6 changes: 6 additions & 0 deletions RadixWallet/Core/DesignSystem/Extensions/Button+Extra.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,10 @@ extension Button where Label == SwiftUI.Label<Text, Image> {
SwiftUI.Label(title, asset: asset)
}
}

init(_ title: some StringProtocol, image: ImageResource, action: @escaping () -> Void) {
self.init(action: action) {
SwiftUI.Label(title, image: image)
}
}
}
9 changes: 9 additions & 0 deletions RadixWallet/Core/DesignSystem/Extensions/Label+Extra.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,13 @@ extension Label where Title == Text, Icon == Image {
.renderingMode(.template)
}
}

init(_ title: some StringProtocol, image: ImageResource) {
self.init {
Text(title)
} icon: {
Image(image)
.renderingMode(.template)
}
}
}
9 changes: 9 additions & 0 deletions RadixWallet/Core/DesignSystem/Extensions/Text+Extra.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
extension Text {
@_disfavoredOverload
init?(_ content: (some StringProtocol)?) {
guard let content else {
return nil
}
self.init(content)
}
}
4 changes: 4 additions & 0 deletions RadixWallet/Core/DesignSystem/Fonts.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ extension SwiftUI.Font {
}

extension SwiftUI.Font.App {
public var enlarged: SwiftUI.Font {
.custom(FontFamily.IBMPlexSans.semiBold, size: 50)
}

public var sheetTitle: SwiftUI.Font {
.custom(FontFamily.IBMPlexSans.bold, size: 32)
}
Expand Down
15 changes: 15 additions & 0 deletions RadixWallet/Core/DesignSystem/LinearGradients.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,21 @@ extension Gradient {
]
}

extension LinearGradient.App {
public var brand1: LinearGradient {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ended up not being used on these designs but decided to keep it as we will probably need it somewhere else (it is part of the design system.

.init(
colors: [
.app.account11green,
.app.account11blue1,
.app.gradientPurple,
.app.blue1,
],
startPoint: .bottomLeading,
endPoint: .topTrailing
)
}
}

#if DEBUG
struct LinearGradients_Previews: PreviewProvider {
static var previews: some View {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import SwiftUI

// MARK: - TextStyle
public enum TextStyle {
case enlarged
case sheetTitle
case sectionHeader
case secondaryHeader
Expand All @@ -23,6 +24,7 @@ public enum TextStyle {
extension TextStyle {
var font: SwiftUI.Font {
switch self {
case .enlarged: .app.enlarged
case .sheetTitle: .app.sheetTitle
case .sectionHeader: .app.sectionHeader
case .secondaryHeader: .app.secondaryHeader
Expand All @@ -46,6 +48,8 @@ extension TextStyle {
switch self {
case .sheetTitle, .resourceLabel:
0
case .enlarged:
2
case .sectionHeader, .secondaryHeader, .body1Header,
.body1HighImportance, .body1Regular, .body1StandaloneLink, .body1Link:
23 / 4
Expand Down
Loading
Loading