Repository navigation
feat(ui): polish shortcut sheet and migrate shortcut bar UI - #773
Conversation
📝 WalkthroughWalkthroughThis 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. ChangesShortcut UI Modernization with SwiftUI
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 3
🧹 Nitpick comments (2)
DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-topper.imageset/Contents.json (1)
1-24: 💤 Low valueConsider 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 winConsider 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-intentto 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
⛔ Files ignored due to path filters (59)
DashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-atm.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-atm.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-atm.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-backup.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-backup.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-backup.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-buy-sell.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-buy-sell.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-buy-sell.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-coinbase.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-coinbase.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-coinbase.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-crowdnode.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-crowdnode.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-crowdnode.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-explore.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-explore.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-explore.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-flexa.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-flexa.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-flexa.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-receive.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-receive.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-receive.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-scan-qr.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-scan-qr.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-scan-qr.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send-address.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send-address.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send-address.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send-contact.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send-contact.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send-contact.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-spend.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-spend.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-spend.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-topper.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-topper.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-topper.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-uphold.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-uphold.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-uphold.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_atm.imageset/atm.svgis excluded by!**/*.svgDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_buySellDash.imageset/buySell.svgis excluded by!**/*.svgDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_coinbase.imageset/coinbase.svgis excluded by!**/*.svgDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_crowdNode.imageset/crowdNode.svgis excluded by!**/*.svgDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_explore.imageset/explore.svgis excluded by!**/*.svgDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_payToAddress.imageset/payToAddress.svgis excluded by!**/*.svgDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_receive.imageset/receive.svgis excluded by!**/*.svgDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_scanToPay.imageset/scan.svgis excluded by!**/*.svgDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_secureWalletNow.imageset/backup.svgis excluded by!**/*.svgDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_send.imageset/send.svgis excluded by!**/*.svgDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_sendToContact.imageset/sendToContact.svgis excluded by!**/*.svgDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_spend.imageset/spend.svgis excluded by!**/*.svgDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_topper.imageset/topper.svgis excluded by!**/*.svgDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_uphold.imageset/uphold.svgis excluded by!**/*.svg
📒 Files selected for processing (39)
DashWallet.xcodeproj/project.pbxprojDashWallet/Resources/AppAssets.xcassets/Shortcuts/Image.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-atm.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-backup.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-buy-sell.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-coinbase.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-crowdnode.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-explore.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-flexa.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-receive.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-scan-qr.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send-address.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send-contact.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-spend.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-topper.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-uphold.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_atm.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_buySellDash.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_coinbase.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_crowdNode.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_explore.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_payToAddress.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_receive.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_scanToPay.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_secureWalletNow.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_send.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_sendToContact.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_spend.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_topper.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut_uphold.imageset/Contents.jsonDashWallet/Sources/UI/Home/HomeViewController+Shortcuts.swiftDashWallet/Sources/UI/Home/Views/HomeViewModel.swiftDashWallet/Sources/UI/Home/Views/Shortcuts/Models/ShortcutAction.swiftDashWallet/Sources/UI/Home/Views/Shortcuts/ShortcutCell.swiftDashWallet/Sources/UI/Home/Views/Shortcuts/ShortcutItemView.swiftDashWallet/Sources/UI/Home/Views/Shortcuts/ShortcutSelectionView.swiftDashWallet/Sources/UI/Home/Views/Shortcuts/ShortcutsView.swiftDashWallet/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
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
There was a problem hiding this comment.
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 winAdd asset-level template rendering intent for this toolbar icon.
This imageset is missing a
properties.template-rendering-intententry. For generic navigation icons, set it totemplateto 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.jsonimage sets must define appropriatetemplate-rendering-intentmetadata. Based on learnings, generic/system UI icons should usetemplateintent.🤖 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 valueThe "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
alphaproperty (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
⛔ Files ignored due to path filters (69)
DashWallet/Resources/AppAssets.xcassets/Menu/menu-shortcuts.imageset/menu-shortcuts.pngis excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Menu/menu-shortcuts.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Menu/menu-shortcuts.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-back.imageset/Back.pngis excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-back.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-back.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-back.imageset/control-back.pngis excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-back.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-back.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-close.imageset/Close.pngis excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-close.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-close.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-close.imageset/control-close.pngis excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-close.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-close.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-info.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-info.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-info.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-plus.imageset/control-plus.pngis excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-plus.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-plus.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-plus.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-plus.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-plus.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-atm.imageset/shortcut-bar-atm.pngis excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-atm.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-atm.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-backup.imageset/shortcut-bar-backup.pngis excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-backup.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-backup.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-buy-sell.imageset/shortcut-bar-buy-sell.pngis excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-buy-sell.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-buy-sell.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-coinbase.imageset/shortcut-bar-coinbase.pngis excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-coinbase.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-coinbase.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-crowdnode.imageset/shortcut-bar-crowdnode.pngis excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-crowdnode.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-crowdnode.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-explore.imageset/shortcut-bar-explore-2.pngis excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-explore.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-explore.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-flexa.imageset/shortcut-bar-flexa.pngis excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-flexa.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-flexa.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-receive.imageset/shortcut-bar-receive.pngis excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-receive.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-receive.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-scan-qr.imageset/shortcut-bar-scan-qr.pngis excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-scan-qr.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-scan-qr.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send-address.imageset/shortcut-bar-send-address.pngis excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send-address.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send-address.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send-contact.imageset/shortcut-bar-send-account.pngis excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send-contact.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send-contact.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send.imageset/shortcut-bar-send.pngis excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-spend.imageset/shortcut-bar-spend.pngis excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-spend.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-spend.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-topper.imageset/shortcut-bar-topper.pngis excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-topper.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-topper.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-uphold.imageset/shortcut-bar-uphold.pngis excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-uphold.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-uphold.imageset/[email protected]is excluded by!**/*.png
📒 Files selected for processing (32)
DashWallet.xcodeproj/project.pbxprojDashWallet/Resources/AppAssets.xcassets/Menu/menu-shortcuts.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-back.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-close.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-info.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Navigation bar/toolbar-plus.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-atm.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-backup.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-buy-sell.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-coinbase.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-crowdnode.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-explore.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-flexa.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-receive.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-scan-qr.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send-address.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send-contact.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-send.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-spend.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-topper.imageset/Contents.jsonDashWallet/Resources/AppAssets.xcassets/Shortcuts/shortcut-bar-uphold.imageset/Contents.jsonDashWallet/Sources/UI/Home/Views/Home Header View/HomeHeaderView.swiftDashWallet/Sources/UI/Home/Views/HomeViewModel.swiftDashWallet/Sources/UI/Home/Views/Shortcuts/Models/ShortcutAction.swiftDashWallet/Sources/UI/Home/Views/Shortcuts/ShortcutCustomizeBannerView.swiftDashWallet/Sources/UI/Home/Views/Shortcuts/ShortcutItemView.swiftDashWallet/Sources/UI/Home/Views/Shortcuts/ShortcutSelectionView.swiftDashWallet/Sources/UI/Home/Views/Shortcuts/ShortcutsBarView.swiftDashWallet/Sources/UI/Home/Views/Shortcuts/ShortcutsView.swiftDashWallet/Sources/UI/Home/Views/Shortcuts/ShortcutsView.xibDashWallet/Sources/UI/SwiftUI Components/BottomSheet.swiftDashWallet/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
| let barHosting = UIHostingController( | ||
| rootView: AnyView(barView.padding(.top, 13).background(Color.navigationBarColor)) | ||
| ) | ||
| barHosting.view.translatesAutoresizingMaskIntoConstraints = false | ||
| barHosting.view.backgroundColor = .clear | ||
| self.barHostingController = barHosting |
There was a problem hiding this comment.
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 = barHostingThen 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 = hostingAnd 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 |
There was a problem hiding this comment.
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.0Also 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).
feat(ui): polish shortcut sheet and migrate shortcut bar UI
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?
presentShortcutSelection) to use the updated bottom-sheet presentation pattern.ShortcutSelectionViewpreviews for easier UI iteration.ShortcutItemView(SwiftUI),ShortcutCellto useUIHostingConfigurationon iOS 16+ with fallback behavior for iOS 15.ShortcutActionType.iconName) to support direct asset-driven rendering.MenuItem) used by shortcut selection rows.@1x/@2x/@3x),How Has This Been Tested?
presentShortcutSelection) to use the updated bottom-sheet presentation pattern.ShortcutSelectionViewpreviews for easier UI iteration.ShortcutItemView(SwiftUI),ShortcutCellto useUIHostingConfigurationon iOS 16+ with fallback behavior for iOS 15.ShortcutActionType.iconName) to support direct asset-driven rendering.MenuItem) used by shortcut selection rows.@1x/@2x/@3x),Breaking Changes
None.
Checklist:
For repository code-owners and collaborators only
Summary by CodeRabbit
New Features
Refactor
Chores