taler-ios

iOS apps for GNU Taler (wallet)
Log | Files | Refs | README | LICENSE

commit 8736e215bb5593047653e4a67195bbe9963e4a75
parent 90a40954bef473b71f13c2923a53abe71ce1e953
Author: Marc Stibane <marc@taler.net>
Date:   Tue,  9 Sep 2025 16:22:06 +0200

defaultScrollAnchor

Diffstat:
MTalerWallet1/Views/ViewModifier/View+flippedDirection.swift | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git a/TalerWallet1/Views/ViewModifier/View+flippedDirection.swift b/TalerWallet1/Views/ViewModifier/View+flippedDirection.swift @@ -50,3 +50,14 @@ extension View { modifier(FlippedUpsideDown()) } } + + +// Used to reverse the direction of a ScrollView +// need to flip both the ScrollView and each list item +// inspired by https://stackoverflow.com/questions/61520970/swiftui-reverse-scrollview-from-bottom-to-top +// +//Apple has an API when using iOS 17+ +// ScrollView() { +// // content +// } +// .defaultScrollAnchor(.bottom)