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

Open
wants to merge 37 commits into
base: main
Choose a base branch
from
Open

[ABW-3213] Address Details #1100

wants to merge 37 commits into from

Conversation

matiasbzurovski
Copy link
Contributor

@matiasbzurovski matiasbzurovski commented Apr 26, 2024

Jira ticket: ABW-3213
Jira ticket: ABW-3256

Description

This PR adds a sheet presented every time the user taps on an AddressView with a LedgerIdentifiable.Address associated.

Video

demo.mov

@matiasbzurovski matiasbzurovski added the DO NOT MERGE Merging is blocked or prohibited due to missing specs or other higher priority PRs label Apr 26, 2024
@@ -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.

public struct AddressDetails: Sendable, FeatureReducer {
public struct State: Sendable, Hashable {
let address: LedgerIdentifiable.Address
let closeAction: (() -> Void)?
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It really bothers me that we need to send a non-sendable closure to this state.. But it is the only way I was able to handle dismissal when the view is presented from AddressView (which is a plain SwiftUI vanilla view). Open to better suggestions.

@GhenadieVP
Copy link
Contributor

GhenadieVP commented May 3, 2024

@matiasbzurovski Note: This is to be merged for the next 1.6.0 release if Android manages to implement it, otherwise it will go in 1.7.0 release.

@matiasbzurovski matiasbzurovski removed the DO NOT MERGE Merging is blocked or prohibited due to missing specs or other higher priority PRs label Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants