Commit Graph

141 Commits

Author SHA1 Message Date
Francisco Gindre 883ce52011
Merge pull request #117 from dh-ecc/tca-nav-skeleton
Tca nav skeleton
2021-11-16 12:52:04 -03:00
Daniel Haight c6a98f06c2 Add `WithStateBinding`
This is a way to add back some of the "free" animations that we lose when
creating custom bindings instead of using `@State` variables, which is
extremely common in TCA / unidirectional architecture.

For an example check out the live preview in the `WithStateBinding` file.
The first is with a standard State binding, click to get the detail and then
drag from the leading edge slowly. You will notice the selection highlight _gradually_
gets less the more you drag (or stronger if you go back).

For the second one with a custom binding, drag back and you will notice it is either
entirely selected, or deselected.

The third uses `WithStateBinding` to give _back_ the nice animations to custom bindings.
2021-11-15 23:36:16 +00:00
Daniel Haight 1adf39b933 Drive `HomeView` Navigation state from `ViewStore`
This demonstrates going from a view with no active navigation, to one that is state driven.

It is intended to be representative of the work needed to achieve this.
2021-11-15 23:36:16 +00:00
Daniel Haight e458a491c4 Add `Home` TCA feature
- Add the `State/Action/Reducer` combination to represent a basic TCA feature
- There is a `route` property on the state which represents our navigation state
    (we will use this to drive more navigation state in the next commit)
- The state has a property which is a `TransactionHistoryState`
    we create our new reducer by leaning mostly on the existing one.
- Temporarily we set up a text representation of our state
- Temporarily Use `HomeView` as the app's entry point, to be replaced with an `AppView`
2021-11-15 23:36:16 +00:00
Daniel Haight 9724d22235 Add `NavigationLinks` and `Bindings`
This gives us a more readable approach to set up navigation links
that mirrors other `SwiftUI` navigation paradigms such as `.sheet`.

We use the modifier to simplify navigation link setup for `TransactionHistoryView`

We also include some `Binding` extensions to help creating them.
2021-11-15 23:36:14 +00:00
Daniel Haight 0ce7d14c81 Add `History` TCA feature
This adds a "TCA" feature of a (very) basic transaction history and detail.

It demonstrates a purely state driven navigation stack.
Specifically, a `route: Route?` value is tracked in the state.
This value is driven by the selection of a transaction in the list,
setting it to to `.selectedTransaction(transaction)`,
which then pushes the detail view for that `transaction` onto the `NavigationView`.
Popping the detail view sets the property to `nil`.

Take a look at the previews in `TransactionHistoryView` try them "live" as well.

**N.B** The models are _not_ correct in any way, though are meant to be somewhat representative
and give something to display.
2021-11-15 23:32:54 +00:00
Francisco Gindre 94a0684380
Merge pull request #116 from adamstener/design-guide-updates
Design Guide Updates
2021-11-09 19:38:23 -03:00
Adam Stener d1b805c485 Design Guide Updates 2021-11-09 07:05:15 -06:00
Francisco Gindre 1bbc5a3171
Merge pull request #115 from adamstener/onboarding-state-updates
Onboarding State Updates
2021-11-05 11:00:42 -03:00
adam 9b46a4c9d3 Onboarding State Updates 2021-11-05 07:27:31 -05:00
Francisco Gindre 23873cc757
Merge pull request #114 from rex4539/typos
Fix typos
2021-11-05 08:20:23 -03:00
Dimitris Apostolou 8c3f26fdbb
Fix typos 2021-11-05 10:07:21 +02:00
Francisco Gindre 3068e6a168
Merge pull request #113 from adamstener/onboarding
Onboarding: Skip Functionality
2021-11-04 11:45:24 -03:00
adam 16adad59f0 Onboarding Skip 2021-11-04 07:54:30 -05:00
Francisco Gindre a4d3ea7cf4
Merge pull request #111 from adamstener/circular-frame
Circular Frame with Optional Badge Accessory
2021-10-29 20:54:46 -03:00
adam 66e35c2913 Circular Frame 2021-10-29 08:22:16 -05:00
Francisco Gindre 0e7ed30f44
Merge pull request #71 from zcash/feature/ui-components
Initial UI Components
2021-10-27 19:51:12 -03:00
Francisco Gindre 89f4699dec
Merge pull request #69 from zcash/empty-chip
Empty chip First Iteration
2021-10-27 19:11:48 -03:00
Francisco Gindre 0877689d3a PR Fixes 2021-10-27 16:29:23 -03:00
Francisco Gindre 2e49e0968d Empty Chip + design guide tweaks
Integrate design guide secret screen

doc formatting

latest tweaks

remove commented code
2021-10-26 18:49:47 -03:00
Francisco Gindre 1bb2167d5f
Merge pull request #66 from zcash/design-guide
fix: EnumeratedChip Height fix
2021-10-21 19:50:43 -03:00
Francisco Gindre b1be1284e2 fix: EnumeratedChip Height fix 2021-10-21 19:48:43 -03:00
Francisco Gindre bd80bd83d5
Merge pull request #60 from zcash/design-guide
Design guide preview
2021-10-21 19:48:18 -03:00
Francisco Gindre 14efde39d4 Add Enumerated Chip to design guide 2021-10-21 16:41:39 -03:00
Francisco Gindre 31973d7a2b In Progress - Design Guide 2021-10-21 16:35:21 -03:00
Francisco Gindre e6503e5b7f
Merge pull request #58 from zcash/ui-components-word-chip
UI components word chip
2021-10-21 14:45:58 -03:00
Francisco Gindre 6152d4294c Remove clamping from NumberedText 2021-10-21 14:33:08 -03:00
Francisco Gindre 73fbccff07
Merge pull request #57 from zcash/ui-components-word-chip
UI components word chip
2021-10-21 12:41:29 -03:00
Francisco Gindre bafdd6df37 PR suggestions 2021-10-21 12:40:35 -03:00
Francisco Gindre dedea73ffc Numbered Text View + tests
Recovery Phrase word chip, fonts and colors

Adjust font and layout

move background code to EnumeratedChip

enhance preview

Fix chip size not being uniform and trimming

code cleanup

remove Font License

code cleanup
2021-10-20 21:01:28 -03:00
Francisco Gindre b3b35cdc9d
Merge pull request #56 from zcash/ui-components-add-font
UI components add font
2021-10-20 11:06:29 -03:00
Francisco Gindre 6d299c6a98 Add Rubik fonts
Use Variable fonts
2021-10-19 19:56:16 -03:00
Francisco Gindre 7f6c06af4f
Merge pull request #54 from zcash/background-component
Background Linear Gradient component + Design Guide
2021-10-19 08:28:00 -03:00
Francisco Gindre 7dffe415f2 rename colors and their components 2021-10-18 18:51:45 -03:00
Francisco Gindre 931a78b67a amend the rename refactor xcode didn't do 2021-10-18 17:13:25 -03:00
Francisco Gindre fbe81e7320 specify background component naming 2021-10-18 16:45:57 -03:00
Francisco Gindre ec76786bf2 Rename Background View to VLinearGradient. Create ViewModifier 2021-10-18 15:13:04 -03:00
Francisco Gindre 8847064f45 Background Linear Gradient component + Design Guide 2021-10-18 13:04:15 -03:00
Francisco Gindre fa98806d01
Merge pull request #53 from adamstener/feature/button-styles
Button Styles
2021-10-18 11:34:33 -03:00
adam 37035170f2 Button Styles 2021-10-18 09:13:51 -05:00
Francisco Gindre 742f2a6554
Merge pull request #51 from adamstener/Onboarding-ProgressView
Onboarding Progress Indicator
2021-10-16 09:57:50 -03:00
adam e1439ba363 Onboarding Progress Indicator 2021-10-15 17:30:20 -05:00
Francisco Gindre c641784a95
Merge pull request #49 from adamstener/TCA-Version-Update 2021-10-15 08:24:34 -03:00
adam c8d3ccf7a3 TCA Updates 2021-10-15 06:15:12 -05:00
Francisco Gindre 8b13821610
Merge pull request #43 from adamstener/Colors
Color additions
2021-10-14 14:28:38 -03:00
adam 5e0d74a066 Color additions 2021-10-14 12:04:04 -05:00
Francisco Gindre baea8f30fc
Merge pull request #42 from adamstener/Onboarding-TCA
Onboarding TCA intro
2021-10-14 12:11:21 -03:00
adam 0169164472 Onboarding TCA intro 2021-10-13 07:25:17 -05:00
Francisco Gindre f39c458669
Merge pull request #41 from adamstener/SwiftGen
SwiftGen Assets (#34)
2021-10-05 16:02:11 -03:00
adam 2f66bb5cd7 SwiftGen Assets 2021-10-05 13:41:26 -05:00