From 1f12bd4f9ede7ca91f80515e5e49e1eacd34a8ce Mon Sep 17 00:00:00 2001 From: "xuan.huang" <5563315+Huxpro@users.noreply.github.com> Date: Thu, 23 Apr 2026 13:46:27 +0800 Subject: [PATCH] fix(example): correct DeepLinks live activity height on lock screen MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The lock screen layout was wrapped in an unnecessary HStack with a single VStack child using flex:1, which caused SwiftUI to miscalculate the intrinsic height — rendering as a collapsed bar. Replace the outer HStack with a VStack and remove the redundant nesting so the live activity expands to its natural content height. Fixes #133 --- .../DeepLinksLiveActivityUI.tsx | 83 +++++++++---------- 1 file changed, 40 insertions(+), 43 deletions(-) diff --git a/example/components/live-activities/DeepLinksLiveActivityUI.tsx b/example/components/live-activities/DeepLinksLiveActivityUI.tsx index 563356b6..6c7d5e2b 100644 --- a/example/components/live-activities/DeepLinksLiveActivityUI.tsx +++ b/example/components/live-activities/DeepLinksLiveActivityUI.tsx @@ -3,49 +3,46 @@ import { Voltra } from 'voltra' export function DeepLinksLiveActivityUI() { return ( - - {/* Link Examples */} - - {/* Link with absolute URL */} - - - - - Order #123 - Tap to view details - - - - - + + {/* Link with absolute URL */} + + + + + Order #123 + Tap to view details + + + + + - {/* Link with relative path */} - - - - - Settings - Manage preferences - - - - - - - + {/* Link with relative path */} + + + + + Settings + Manage preferences + + + + + + ) }