Skip to content

feat(iOS): add experimental support for scrollview header when using formsheet #2747

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Feb 27, 2025

Conversation

kkafar
Copy link
Member

@kkafar kkafar commented Feb 27, 2025

Description

Given numerous feature requests & the frequent need to have header above the scrollview in sheet this PR adds this possibility.

Please see TestFormSheet for example implementation.

Note that this PR enables header by handling special case when there is exactly one view rendered directly under sheet at index 0 (and scroll view on index 1). Again - see example ☝🏻

Changes

We're now detecting special case inside content wrapper: scroll view at index 0 or header at 0 & scrollview at 1. We then adjust the layout manually. If these cases are not detected we fallback to previous behaviour.

Test code and steps to reproduce

Enhanced TestFormSheet to allow for testing this.

Checklist

  • Included code example that can be used to test this change
  • Ensured that CI passes

@kkafar kkafar changed the title feat(iOS): add support for scrollview header when using formsheet feat(iOS): add experimental support for scrollview header when using formsheet Feb 27, 2025
@kkafar kkafar merged commit 8aa80e8 into main Feb 27, 2025
4 of 5 checks passed
@kkafar kkafar deleted the @kkafar/formsheet-support-header-with-scrollview branch February 27, 2025 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant