Skip to content

feat(ui): polish shortcut sheet and migrate shortcut bar UI - #773

Merged
romchornyi merged 5 commits into
feat/release-8.6.0from
feat/shortcut-bar-polishing
Jun 10, 2026
Merged

romchornyi merged 5 commits into
feat/release-8.6.0from
feat/shortcut-bar-polishing

Conversation

@romchornyi

@romchornyi romchornyi commented Jun 1, 2026 •

Copy link
Copy Markdown
Contributor

Issue being fixed or feature implemented

This PR improves shortcut bar UX and maintainability by modernizing shortcut rendering, refining shortcut customization sheet behavior, and aligning shortcut icon assets for consistent display in the Home screen.

What was done?

  • Reworked shortcut customization flow (presentShortcutSelection) to use the updated bottom-sheet presentation pattern.
  • Added preview-safe HomeViewModel path for SwiftUI previews to avoid preview-time crashes.
  • Added/updated ShortcutSelectionView previews for easier UI iteration.
  • Migrated shortcut cell rendering toward SwiftUI:
    • introduced ShortcutItemView (SwiftUI),
    • updated ShortcutCell to use UIHostingConfiguration on iOS 16+ with fallback behavior for iOS 15.
  • Updated shortcut model mapping (ShortcutActionType.iconName) to support direct asset-driven rendering.
  • Refined shared menu item interaction behavior (MenuItem) used by shortcut selection rows.
  • Refreshed shortcut assets:
    • replaced legacy SVG-based shortcut icon set with new rasterized shortcut-bar image sets (@1x/@2x/@3x),
    • updated asset catalog entries accordingly.
  • Updated Xcode project references to include new shortcut SwiftUI view and assets.

How Has This Been Tested?

  • Reworked shortcut customization flow (presentShortcutSelection) to use the updated bottom-sheet presentation pattern.
  • Added preview-safe HomeViewModel path for SwiftUI previews to avoid preview-time crashes.
  • Added/updated ShortcutSelectionView previews for easier UI iteration.
  • Migrated shortcut cell rendering toward SwiftUI:
    • introduced ShortcutItemView (SwiftUI),
    • updated ShortcutCell to use UIHostingConfiguration on iOS 16+ with fallback behavior for iOS 15.
  • Updated shortcut model mapping (ShortcutActionType.iconName) to support direct asset-driven rendering.
  • Refined shared menu item interaction behavior (MenuItem) used by shortcut selection rows.
  • Refreshed shortcut assets:
    • replaced legacy SVG-based shortcut icon set with new rasterized shortcut-bar image sets (@1x/@2x/@3x),
    • updated asset catalog entries accordingly.
  • Updated Xcode project references to include new shortcut SwiftUI view and assets.

Breaking Changes

None.

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

Summary by CodeRabbit

  • New Features

    • Added redesigned shortcuts bar with improved UI and customization experience.
    • Added new shortcuts customization banner with menu icon access.
  • Refactor

    • Replaced legacy shortcut icons with new PNG-based assets for better visual consistency.
    • Updated navigation bar icons throughout the app.
    • Modernized internal component architecture for shortcuts and navigation UI.
  • Chores

    • Updated app version to 8.6.1.

@coderabbitai

coderabbitai Bot commented Jun 1, 2026 •

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

This PR modernizes the shortcut UI by migrating from SVG to PNG assets, introducing a new SwiftUI component library, implementing filtering for shortcut customization, and refactoring the presentation layer to use bottom-sheet modals with comprehensive preview infrastructure across iOS 16+ variants.

Changes

Shortcut UI Modernization with SwiftUI

Layer / File(s) Summary
Asset catalog PNG migration and icon name mapping
DashWallet.xcodeproj/project.pbxproj, DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-*.imageset/Contents.json, DashWallet/Resources/AppAssets.xcassets/Menu/menu-shortcuts.imageset/Contents.json, DashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-*.imageset/Contents.json
11 new PNG-based shortcut imagesets replace SVG variants. Navigation bar icons renamed with new asset filenames. New menu-shortcuts asset added. Xcode project wiring registers ShortcutItemView.swift and ShortcutsBarView.swift in Sources build phases. Version bumped to 8.6.1 and CURRENT_PROJECT_VERSION set to 1.
ShortcutActionType icon name mapping
DashWallet/Sources/UI/Home/Views/Shortcuts/Models/ShortcutAction.swift
ShortcutActionType exposes computed iconName property mapping each action type to PNG asset name. ShortcutAction.icon updated to construct images via type.iconName lookup.
SwiftUI ShortcutItemView component
DashWallet/Sources/UI/Home/Views/Shortcuts/ShortcutItemView.swift
New ShortcutItemView renders icon and two-line caption in padded rectangular tile. Supports initialization from explicit title/iconName or from ShortcutAction model. Includes debug preview grid with enabled/disabled variants.
ShortcutCell iOS 16+ SwiftUI integration
DashWallet/Sources/UI/Home/Views/Shortcuts/ShortcutCell.swift
ShortcutCell uses UIHostingConfiguration with ShortcutItemView on iOS 16+. Pre-iOS 16 paths retain direct UIKit label/icon/gradient configuration.
SwiftUI ShortcutsBarView replacement for UIKit
DashWallet/Sources/UI/Home/Views/Shortcuts/ShortcutsBarView.swift
New ShortcutsBarView replaces UIKit ShortcutsView, rendering 4 shortcut buttons in white card with full-bleed background and navigation-color strip. Implements tap and 0.5s long-press gestures with press-state scaling and accessibility snapshot support. Includes light/dark/large-text previews.
HomeHeaderView SwiftUI hosting and layout updates
DashWallet/Sources/UI/Home/Views/Home Header View/HomeHeaderView.swift, DashWallet/Sources/UI/Home/Views/Shortcuts/ShortcutsView.swift, DashWallet/Sources/UI/Home/Views/Shortcuts/ShortcutsView.xib
HomeHeaderView hosts SwiftUI ShortcutsBarView via UIHostingController instead of UIKit ShortcutsView. Introduces shortcutBarBannerSpacing constant for conditional spacing. Customization banner uses AnyView with updated padding/clear background. ShortcutsView canvas previews added. Layout constants adjusted (cellSize margin, verticalPadding, corner radius, iPad insets). ShortcutsView.xib constraints refactored for explicit leading/trailing anchors with adjusted vertical spacing.
Shortcut selection filtering and customization UI
DashWallet/Sources/UI/Home/Views/Shortcuts/ShortcutSelectionView.swift, DashWallet/Sources/UI/Home/Views/Shortcuts/ShortcutCustomizeBannerView.swift
ShortcutSelectionView accepts usedTypes parameter and filters availableActions to exclude already-used types. UI replaced with ScrollView+VStack using MenuItem-based selection with dismissal. ShortcutCustomizeBannerView updated to use custom Icon, new SwiftUI typography (footnoteMedium/footnote fonts with foregroundStyle colors), white background with rect corner radius, and modern shadow styling. Previews include bottom-sheet and empty-state variants.
Bottom-sheet presentation and HomeViewController integration
DashWallet/Sources/UI/Home/HomeViewController+Shortcuts.swift
HomeViewController+Shortcuts refactored to present shortcut selection via bottom-sheet using UIHostingController. Computes currently-used shortcut types and passes to ShortcutSelectionView. Conditionally configures sheet presentation for iOS 16.4+ (detents, grabber) versus earlier iOS 16 versions.
Debug preview mode and reusable SwiftUI infrastructure
DashWallet/Sources/UI/Home/Views/HomeViewModel.swift, DashWallet/Sources/UI/SwiftUI Components/BottomSheet.swift, DashWallet/Sources/UI/SwiftUI Components/NavigationBar.swift, DashWallet/Sources/UI/SwiftUI Components/MenuItem.swift
HomeViewModel adds debug-only preview infrastructure: lazy initialization of services, isPreviewMode flag, preview initializer, and HomeViewModelPreviewTransactionSource. BottomSheet enhanced with fillsHeight configuration, content-height measurement, and selfSizingSheet modifier for iOS 16+ auto-sizing. NavigationBar refactored from typealias to generic component with leading/central/trailing slots, NavigationBarElement enum, and closure-based action handlers with colorScheme-aware icon selection. MenuItem initializers reformatted without semantic changes.

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~45 minutes

Suggested reviewers

  • HashEngineering

Poem

🐰 Hop along, dear wallet friends,
The shortcut tiles now blend—
SwiftUI bright, PNGs clean,
Loveliest bar you've ever seen!
Version's jumped to 8-point-six,
The perfect preview fix! 🎨✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 23.08% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title clearly and specifically describes the main changes: polishing the shortcut sheet and migrating the shortcut bar UI to SwiftUI, which aligns with the substantial refactoring across asset management, UI components, and project configuration.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/shortcut-bar-polishing

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@romchornyi romchornyi changed the title feat(UI): polish shortcut sheet and migrate shortcut bar UI feat(ui): polish shortcut sheet and migrate shortcut bar UI Jun 1, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 3

🧹 Nitpick comments (2)
DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-topper.imageset/Contents.json (1)

1-24: 💤 Low value

Consider explicit rendering intent for brand identity icons.

For brand identity icons (topper, uphold), consider explicitly setting "template-rendering-intent": "original" to document the intent to preserve brand colors, even though this is the default behavior for PNGs without the property specified.

This is optional documentation for clarity, as omitting the property achieves the same result.

Based on learnings: Set 'original' for brand-identity icons that must preserve their fill colors.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-topper.imageset/Contents.json`
around lines 1 - 24, Add an explicit "template-rendering-intent": "original"
property to the image entries in this Contents.json to document that the
shortcut-bar-topper asset must preserve its brand colors; update each image
object in the "images" array (the entries containing "filename":
"[email protected]", "`@2x`", "`@3x`") to include that key, and do the same
for other brand identity image sets (e.g. uphold) to clearly indicate original
rendering intent.
DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-receive.imageset/Contents.json (1)

1-24: ⚡ Quick win

Consider adding template-rendering-intent for generic shortcut icons.

These PNG-based generic shortcut icons (receive, scan-qr, send-address, send-contact, send, spend) may benefit from explicit template-rendering-intent to ensure correct tinting behavior. Based on learnings, generic UI icons should set "template-rendering-intent": "template" to inherit system tint colors.

If these PNGs are pre-rendered with fixed colors and should not be tinted, this can be ignored. Otherwise, add the property to each generic icon's image entry.

Example for template rendering
 {
   "images" : [
     {
       "filename" : "[email protected]",
       "idiom" : "universal",
-      "scale" : "1x"
+      "scale" : "1x"
     },
     {
       "filename" : "[email protected]",
       "idiom" : "universal",
-      "scale" : "2x"
+      "scale" : "2x"
     },
     {
       "filename" : "[email protected]",
       "idiom" : "universal",
-      "scale" : "3x"
+      "scale" : "3x"
     }
   ],
   "info" : {
     "author" : "xcode",
     "version" : 1
-  }
+  },
+  "properties" : {
+    "template-rendering-intent" : "template"
+  }
 }

Based on learnings: In iOS asset catalogs, set template-rendering-intent to 'template' for generic/system UI icons that should inherit the system tint.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-receive.imageset/Contents.json`
around lines 1 - 24, The Contents.json for the shortcut-bar-receive asset lacks
a template-rendering-intent entry, so update each image object for
"[email protected]", "[email protected]" and
"[email protected]" in Contents.json to include
"template-rendering-intent": "template" (or omit if the PNGs are intentionally
pre-rendered), ensuring these generic shortcut icons will inherit system tint;
apply the same change to the other generic shortcut assets (scan-qr,
send-address, send-contact, send, spend) as appropriate.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@DashWallet/Resources/AppAssets.xcassets/Shortcuts/Image.imageset/Contents.json`:
- Around line 1-20: Remove or fix the unused asset declared by
Shortcuts/Image.imageset: either delete the empty imageset (the Contents.json
declaring 1x/2x/3x without image files) or add the missing image files and/or
rename the asset to match actual usages; verify there are no references like
UIImage(named: "Image") or Image("Image") in the codebase (or update those
references to the correct asset name) and ensure the imageset contains the
proper 1x/2x/3x files if kept.

In `@DashWallet/Sources/UI/Home/Views/Shortcuts/Models/ShortcutAction.swift`:
- Around line 159-203: ShortcutAction currently duplicates switch logic in both
the icon and iconName properties; refactor the icon computed property to return
the image created from iconName instead of duplicating the switch. Update the
icon implementation in the ShortcutAction type to call self.iconName to fetch
the asset name and then create and return the Image (or UIImage/NSImage
depending on platform) from that name, ensuring all switch logic remains only in
iconName.

In `@DashWallet/Sources/UI/Home/Views/Shortcuts/ShortcutItemView.swift`:
- Around line 41-58: The computed textColor on ShortcutItemView (set in
init(model:)) is never used because body hardcodes
.foregroundStyle(Color.primaryText); either apply the stored textColor to the
Text by replacing the hardcoded Color.primaryText usage with the textColor
property (i.e., use .foregroundStyle(textColor) on the Text) or remove the
textColor property and directly use model.textColor where needed to avoid a
misleading API and the redundant property; update init(model:) and any
references accordingly.

---

Nitpick comments:
In
`@DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-receive.imageset/Contents.json`:
- Around line 1-24: The Contents.json for the shortcut-bar-receive asset lacks a
template-rendering-intent entry, so update each image object for
"[email protected]", "[email protected]" and
"[email protected]" in Contents.json to include
"template-rendering-intent": "template" (or omit if the PNGs are intentionally
pre-rendered), ensuring these generic shortcut icons will inherit system tint;
apply the same change to the other generic shortcut assets (scan-qr,
send-address, send-contact, send, spend) as appropriate.

In
`@DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-topper.imageset/Contents.json`:
- Around line 1-24: Add an explicit "template-rendering-intent": "original"
property to the image entries in this Contents.json to document that the
shortcut-bar-topper asset must preserve its brand colors; update each image
object in the "images" array (the entries containing "filename":
"[email protected]", "`@2x`", "`@3x`") to include that key, and do the same
for other brand identity image sets (e.g. uphold) to clearly indicate original
rendering intent.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 80e43e06-8c4b-4022-be27-0ccb80f52504

📥 Commits

Reviewing files that changed from the base of the PR and between 6f4ec9e and b120d08.

⛔ Files ignored due to path filters (59)
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-atm.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-atm.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-atm.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-backup.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-backup.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-backup.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-buy-sell.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-buy-sell.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-buy-sell.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-coinbase.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-coinbase.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-coinbase.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-crowdnode.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-crowdnode.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-crowdnode.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-explore.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-explore.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-explore.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-flexa.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-flexa.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-flexa.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-receive.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-receive.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-receive.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-scan-qr.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-scan-qr.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-scan-qr.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send-address.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send-address.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send-address.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send-contact.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send-contact.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send-contact.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-spend.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-spend.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-spend.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-topper.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-topper.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-topper.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-uphold.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-uphold.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-uphold.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_atm.imageset/atm.svg is excluded by !**/*.svg
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_buySellDash.imageset/buySell.svg is excluded by !**/*.svg
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_coinbase.imageset/coinbase.svg is excluded by !**/*.svg
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_crowdNode.imageset/crowdNode.svg is excluded by !**/*.svg
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_explore.imageset/explore.svg is excluded by !**/*.svg
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_payToAddress.imageset/payToAddress.svg is excluded by !**/*.svg
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_receive.imageset/receive.svg is excluded by !**/*.svg
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_scanToPay.imageset/scan.svg is excluded by !**/*.svg
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_secureWalletNow.imageset/backup.svg is excluded by !**/*.svg
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_send.imageset/send.svg is excluded by !**/*.svg
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_sendToContact.imageset/sendToContact.svg is excluded by !**/*.svg
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_spend.imageset/spend.svg is excluded by !**/*.svg
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_topper.imageset/topper.svg is excluded by !**/*.svg
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_uphold.imageset/uphold.svg is excluded by !**/*.svg
📒 Files selected for processing (39)
  • DashWallet.xcodeproj/project.pbxproj
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/Image.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-atm.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-backup.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-buy-sell.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-coinbase.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-crowdnode.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-explore.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-flexa.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-receive.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-scan-qr.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send-address.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send-contact.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-spend.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-topper.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-uphold.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_atm.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_buySellDash.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_coinbase.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_crowdNode.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_explore.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_payToAddress.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_receive.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_scanToPay.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_secureWalletNow.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_send.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_sendToContact.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_spend.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_topper.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_uphold.imageset/Contents.json
  • DashWallet/Sources/UI/Home/HomeViewController+Shortcuts.swift
  • DashWallet/Sources/UI/Home/Views/HomeViewModel.swift
  • DashWallet/Sources/UI/Home/Views/Shortcuts/Models/ShortcutAction.swift
  • DashWallet/Sources/UI/Home/Views/Shortcuts/ShortcutCell.swift
  • DashWallet/Sources/UI/Home/Views/Shortcuts/ShortcutItemView.swift
  • DashWallet/Sources/UI/Home/Views/Shortcuts/ShortcutSelectionView.swift
  • DashWallet/Sources/UI/Home/Views/Shortcuts/ShortcutsView.swift
  • DashWallet/Sources/UI/SwiftUI Components/MenuItem.swift
💤 Files with no reviewable changes (14)
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_secureWalletNow.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_topper.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_sendToContact.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_scanToPay.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_explore.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_spend.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_atm.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_uphold.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_buySellDash.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_receive.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_send.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_coinbase.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_crowdNode.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_payToAddress.imageset/Contents.json

HashEngineering
HashEngineering previously approved these changes Jun 4, 2026

@HashEngineering HashEngineering left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

Why:
- Align Home shortcut bar and navigation chrome with the new asset set

What:
- Rename and replace shortcut/navigation assets
- Adjust Home header, shortcut bar, banner, and bottom sheet spacing/layout
- Add the new ShortcutsBarView bridge and update project references

Validation:
- xcodebuild -list -project DashWallet.xcodeproj succeeded

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 2

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
DashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-info.imageset/Contents.json (1)

19-22: ⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Add asset-level template rendering intent for this toolbar icon.

This imageset is missing a properties.template-rendering-intent entry. For generic navigation icons, set it to template to ensure consistent tint behavior from the asset catalog.

Suggested patch
 {
   "images" : [
@@
   ],
+  "properties" : {
+    "template-rendering-intent" : "template"
+  },
   "info" : {
     "author" : "xcode",
     "version" : 1
   }
 }

As per coding guidelines, Contents.json image sets must define appropriate template-rendering-intent metadata. Based on learnings, generic/system UI icons should use template intent.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@DashWallet/Resources/AppAssets.xcassets/Navigation`
bar/toolbar-info.imageset/Contents.json around lines 19 - 22, Add the missing
asset-level template rendering intent to the imageset Contents.json by adding
the properties.template-rendering-intent entry with value "template" under the
existing "info" block for this toolbar-info.imageset; update the Contents.json
for this imageset so it contains a "properties" object with
"template-rendering-intent": "template" to ensure the icon uses template
rendering/tinting in the asset catalog.
🧹 Nitpick comments (1)
DashWallet/Sources/UI/Home/Views/Shortcuts/ShortcutItemView.swift (1)

75-77: 💤 Low value

The "Disabled" preview shows identical content to "Enabled".

Both previews call shortcutItemGrid() without variation, making the "Disabled" label misleading. Either rename the preview to reflect what it actually shows, or demonstrate a disabled state by passing a reduced alpha value.

📱 Show an actual disabled state

If you keep the alpha property (after fixing the previous issue):

 `#Preview`("Disabled") {
-    shortcutItemGrid()
+    HStack(spacing: 4) {
+        ShortcutItemView(title: "Receive", iconName: "shortcut-bar-receive", alpha: 0.5)
+        ShortcutItemView(title: "Send", iconName: "shortcut-bar-send", alpha: 0.5)
+        ShortcutItemView(title: "Contact", iconName: "shortcut-bar-send-contact", alpha: 0.5)
+        ShortcutItemView(title: "Buy/Sell", iconName: "shortcut-bar-buy-sell", alpha: 0.5)
+    }
+    .padding(8)
+    .background(Color.secondaryBackground)
 }

Or simply rename to reflect the actual content:

-#Preview("Disabled") {
+#Preview("Grid - Variant") {
     shortcutItemGrid()
 }
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@DashWallet/Sources/UI/Home/Views/Shortcuts/ShortcutItemView.swift` around
lines 75 - 77, The "Disabled" preview currently calls shortcutItemGrid() with no
change so it looks the same as "Enabled"; update the preview to either show an
actual disabled state by applying a reduced alpha to the view (e.g., call
shortcutItemGrid() and set .alpha or the SwiftUI equivalent to a lower value) or
rename the preview label to reflect the real content; locate the preview
declarations around shortcutItemGrid() and modify the disabled preview to use
the alpha property (or change the preview title) so the two previews differ as
intended.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@DashWallet/Sources/UI/Home/Views/Home` Header View/HomeHeaderView.swift:
- Around line 76-81: The UIHostingController instances (barHosting /
bannerHostingController) are being embedded only by their views, so add proper
child controller lifecycle management: call addChild(barHosting) before adding
barHosting.view to the stack and then call barHosting.didMove(toParent: self)
after it is added; do the same for bannerHostingController (addChild(hosting)
and hosting.didMove(toParent: self)) where their views are inserted, and when
hiding/removing the banner ensure you call hosting.willMove(toParent: nil) and
hosting.removeFromParent() (and similarly for barHosting when removed) to
correctly forward lifecycle events and manage memory.

In `@DashWallet/Sources/UI/Home/Views/Shortcuts/ShortcutItemView.swift`:
- Line 24: The `alpha` stored property on ShortcutItemView is unused; either
apply it or remove it—update the view's body to use .opacity(alpha) on the
VStack (or the top-level view) and expose alpha via the view's initializers
(e.g., the direct init used around the other initializers), or delete the alpha
property and remove any initializer parameter references; specifically modify
the ShortcutItemView struct: apply .opacity(alpha) to the VStack in var body or
remove var alpha: CGFloat = 1.0 and any init parameter handling in the init
methods referenced in the diff (the direct initializer and the ones between
lines ~36-52).

---

Outside diff comments:
In `@DashWallet/Resources/AppAssets.xcassets/Navigation`
bar/toolbar-info.imageset/Contents.json:
- Around line 19-22: Add the missing asset-level template rendering intent to
the imageset Contents.json by adding the properties.template-rendering-intent
entry with value "template" under the existing "info" block for this
toolbar-info.imageset; update the Contents.json for this imageset so it contains
a "properties" object with "template-rendering-intent": "template" to ensure the
icon uses template rendering/tinting in the asset catalog.

---

Nitpick comments:
In `@DashWallet/Sources/UI/Home/Views/Shortcuts/ShortcutItemView.swift`:
- Around line 75-77: The "Disabled" preview currently calls shortcutItemGrid()
with no change so it looks the same as "Enabled"; update the preview to either
show an actual disabled state by applying a reduced alpha to the view (e.g.,
call shortcutItemGrid() and set .alpha or the SwiftUI equivalent to a lower
value) or rename the preview label to reflect the real content; locate the
preview declarations around shortcutItemGrid() and modify the disabled preview
to use the alpha property (or change the preview title) so the two previews
differ as intended.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: d290378a-6b5b-4e15-a69e-232b0d6eb4eb

📥 Commits

Reviewing files that changed from the base of the PR and between b120d08 and 0028410.

⛔ Files ignored due to path filters (69)
  • DashWallet/Resources/AppAssets.xcassets/Menu/menu-shortcuts.imageset/menu-shortcuts.png is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Menu/menu-shortcuts.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Menu/menu-shortcuts.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-back.imageset/Back.png is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-back.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-back.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-back.imageset/control-back.png is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-back.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-back.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-close.imageset/Close.png is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-close.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-close.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-close.imageset/control-close.png is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-close.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-close.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-info.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-info.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-info.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-plus.imageset/control-plus.png is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-plus.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-plus.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-plus.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-plus.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-plus.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-atm.imageset/shortcut-bar-atm.png is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-atm.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-atm.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-backup.imageset/shortcut-bar-backup.png is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-backup.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-backup.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-buy-sell.imageset/shortcut-bar-buy-sell.png is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-buy-sell.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-buy-sell.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-coinbase.imageset/shortcut-bar-coinbase.png is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-coinbase.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-coinbase.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-crowdnode.imageset/shortcut-bar-crowdnode.png is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-crowdnode.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-crowdnode.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-explore.imageset/shortcut-bar-explore-2.png is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-explore.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-explore.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-flexa.imageset/shortcut-bar-flexa.png is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-flexa.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-flexa.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-receive.imageset/shortcut-bar-receive.png is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-receive.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-receive.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-scan-qr.imageset/shortcut-bar-scan-qr.png is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-scan-qr.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-scan-qr.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send-address.imageset/shortcut-bar-send-address.png is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send-address.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send-address.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send-contact.imageset/shortcut-bar-send-account.png is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send-contact.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send-contact.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send.imageset/shortcut-bar-send.png is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-spend.imageset/shortcut-bar-spend.png is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-spend.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-spend.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-topper.imageset/shortcut-bar-topper.png is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-topper.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-topper.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-uphold.imageset/shortcut-bar-uphold.png is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-uphold.imageset/[email protected] is excluded by !**/*.png
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-uphold.imageset/[email protected] is excluded by !**/*.png
📒 Files selected for processing (32)
  • DashWallet.xcodeproj/project.pbxproj
  • DashWallet/Resources/AppAssets.xcassets/Menu/menu-shortcuts.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-back.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-close.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-info.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-plus.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-atm.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-backup.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-buy-sell.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-coinbase.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-crowdnode.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-explore.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-flexa.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-receive.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-scan-qr.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send-address.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send-contact.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-spend.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-topper.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-uphold.imageset/Contents.json
  • DashWallet/Sources/UI/Home/Views/Home Header View/HomeHeaderView.swift
  • DashWallet/Sources/UI/Home/Views/HomeViewModel.swift
  • DashWallet/Sources/UI/Home/Views/Shortcuts/Models/ShortcutAction.swift
  • DashWallet/Sources/UI/Home/Views/Shortcuts/ShortcutCustomizeBannerView.swift
  • DashWallet/Sources/UI/Home/Views/Shortcuts/ShortcutItemView.swift
  • DashWallet/Sources/UI/Home/Views/Shortcuts/ShortcutSelectionView.swift
  • DashWallet/Sources/UI/Home/Views/Shortcuts/ShortcutsBarView.swift
  • DashWallet/Sources/UI/Home/Views/Shortcuts/ShortcutsView.swift
  • DashWallet/Sources/UI/Home/Views/Shortcuts/ShortcutsView.xib
  • DashWallet/Sources/UI/SwiftUI Components/BottomSheet.swift
  • DashWallet/Sources/UI/SwiftUI Components/NavigationBar.swift
✅ Files skipped from review due to trivial changes (18)
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-coinbase.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-spend.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-receive.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-close.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Menu/menu-shortcuts.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-plus.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-back.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-scan-qr.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send-address.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-explore.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-topper.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-backup.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-uphold.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-crowdnode.imageset/Contents.json
  • DashWallet/Sources/UI/Home/Views/Shortcuts/ShortcutsBarView.swift
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-atm.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-buy-sell.imageset/Contents.json
🚧 Files skipped from review as they are similar to previous changes (5)
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-flexa.imageset/Contents.json
  • DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send-contact.imageset/Contents.json
  • DashWallet/Sources/UI/Home/Views/Shortcuts/Models/ShortcutAction.swift
  • DashWallet/Sources/UI/Home/Views/HomeViewModel.swift
  • DashWallet/Sources/UI/Home/Views/Shortcuts/ShortcutSelectionView.swift

Comment on lines +76 to +81
let barHosting = UIHostingController(
rootView: AnyView(barView.padding(.top, 13).background(Color.navigationBarColor))
)
barHosting.view.translatesAutoresizingMaskIntoConstraints = false
barHosting.view.backgroundColor = .clear
self.barHostingController = barHosting

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major | ⚖️ Poor tradeoff

Add hosting controllers as child view controllers.

When embedding a UIHostingController's view in a UIKit container, you must add the hosting controller itself as a child view controller to ensure proper lifecycle event propagation, trait collection forwarding, and memory management.

🔧 Recommended fix
 let barHosting = UIHostingController(
     rootView: AnyView(barView.padding(.top, 13).background(Color.navigationBarColor))
 )
 barHosting.view.translatesAutoresizingMaskIntoConstraints = false
 barHosting.view.backgroundColor = .clear
+addChild(barHosting)
 self.barHostingController = barHosting

Then after adding the view to the stack (around line 106), call:

barHosting.didMove(toParent: self)

Apply the same pattern for bannerHostingController at line 94:

 let hosting = UIHostingController(rootView: AnyView(bannerView.padding(.horizontal, 20)))
 hosting.view.translatesAutoresizingMaskIntoConstraints = false
 hosting.view.backgroundColor = .clear
+addChild(hosting)
 self.bannerHostingController = hosting

And after adding to stack:

hosting.didMove(toParent: self)

Don't forget to remove child controllers when hiding the banner (line 160):

 hosting.view.isHidden = true
 hosting.view.removeFromSuperview()
+hosting.removeFromParent()
 self.bannerHostingController = nil
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@DashWallet/Sources/UI/Home/Views/Home` Header View/HomeHeaderView.swift
around lines 76 - 81, The UIHostingController instances (barHosting /
bannerHostingController) are being embedded only by their views, so add proper
child controller lifecycle management: call addChild(barHosting) before adding
barHosting.view to the stack and then call barHosting.didMove(toParent: self)
after it is added; do the same for bannerHostingController (addChild(hosting)
and hosting.didMove(toParent: self)) where their views are inserted, and when
hiding/removing the banner ensure you call hosting.willMove(toParent: nil) and
hosting.removeFromParent() (and similarly for barHosting when removed) to
correctly forward lifecycle events and manage memory.

struct ShortcutItemView: View {
let title: String
let iconName: String
var alpha: CGFloat = 1.0

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

The alpha property is declared but never used.

The alpha property is defined with a default value of 1.0 but is never applied in the view's body and cannot be set through either initializer. This creates a misleading API surface. Either apply the alpha value using .opacity(alpha) on the VStack, or remove the property entirely.

🎨 Option 1: Apply the alpha value
         .padding(.bottom, 10)
         .clipShape(.rect(cornerRadius: 16))
         .contentShape(.rect)
+        .opacity(alpha)
     }

And add an optional parameter to the direct initializer:

-    init(title: String, iconName: String) {
+    init(title: String, iconName: String, alpha: CGFloat = 1.0) {
         self.title = title
         self.iconName = iconName
+        self.alpha = alpha
     }
🗑️ Option 2: Remove the unused property
     let title: String
     let iconName: String
-    var alpha: CGFloat = 1.0

Also applies to: 36-52

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@DashWallet/Sources/UI/Home/Views/Shortcuts/ShortcutItemView.swift` at line
24, The `alpha` stored property on ShortcutItemView is unused; either apply it
or remove it—update the view's body to use .opacity(alpha) on the VStack (or the
top-level view) and expose alpha via the view's initializers (e.g., the direct
init used around the other initializers), or delete the alpha property and
remove any initializer parameter references; specifically modify the
ShortcutItemView struct: apply .opacity(alpha) to the VStack in var body or
remove var alpha: CGFloat = 1.0 and any init parameter handling in the init
methods referenced in the diff (the direct initializer and the ones between
lines ~36-52).

@HashEngineering
HashEngineering self-requested a review June 9, 2026 23:34

@HashEngineering HashEngineering left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@romchornyi
romchornyi changed the base branch from master to feat/release-8.6.0 June 10, 2026 15:10
@romchornyi
romchornyi merged commit cb0d946 into feat/release-8.6.0 Jun 10, 2026
1 of 2 checks passed
@coderabbitai coderabbitai Bot mentioned this pull request Jun 15, 2026
1 of 5 tasks
aliblik pushed a commit to aliblik/dashwallet-ios that referenced this pull request Nov 28, 2026
feat(ui): polish shortcut sheet and migrate shortcut bar UI
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.

3 participants