From 9fab6c09c7265409ffef7ea84d6e1e2857fde42d Mon Sep 17 00:00:00 2001 From: Adrian Schoenig Date: Thu, 15 Oct 2026 13:25:17 +1100 Subject: [PATCH] fix: show a page card's scroll indicator at the bottom edge in a sheet In a system sheet, the pager's horizontal scroll indicator was lifted by the bottom safe area, though the pages extend to the bottom edge. Like the pages' indicators go right to the side, it now goes right to the bottom. Co-Authored-By: Claude Opus 5.5 --- Sources/TGCardViewController/cards/TGPageCardView.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Sources/TGCardViewController/cards/TGPageCardView.swift b/Sources/TGCardViewController/cards/TGPageCardView.swift index ef245f9..88659a5 100644 --- a/Sources/TGCardViewController/cards/TGPageCardView.swift +++ b/Sources/TGCardViewController/cards/TGPageCardView.swift @@ -58,8 +58,10 @@ class TGPageCardView: TGCardView { super.updateSafeAreaConstraints() // The pages keep their contents in the safe area themselves, so the pager - // mustn't shift them + // mustn't shift them, and its scroll indicator can go right to the bottom + // edge, like those of the pages go right to the side pager.contentInsetAdjustmentBehavior = keepsContentInSafeArea ? .never : .automatic + pager.automaticallyAdjustsScrollIndicatorInsets = !keepsContentInSafeArea passSafeAreaToPages() }