From a57e62124252138f86d631e5a8f4fce3abf44d37 Mon Sep 17 00:00:00 2001 From: wonhyunkwon <93938741+wonhyunkwon@users.noreply.github.com> Date: Thu, 9 Jul 2026 11:20:28 +0900 Subject: [PATCH] fix(ios): prevent SwiftUI keyboard avoidance from shrinking pages --- ios/PagerView.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ios/PagerView.swift b/ios/PagerView.swift index 58d97882..4362d076 100644 --- a/ios/PagerView.swift +++ b/ios/PagerView.swift @@ -18,6 +18,9 @@ struct PagerView: View { .id(props.children.count) .background(.clear) .tabViewStyle(.page(indexDisplayMode: .never)) + // Opt out of SwiftUI's automatic keyboard avoidance: layout is fully driven + // by React Native, so pages must not shrink when the keyboard appears. + .ignoresSafeArea(.keyboard) .environment(\.layoutDirection, props.layoutDirection.converted) .introspect(.tabView(style: .page), on: .iOS(.v14...)) { collectionView in self.collectionView = collectionView