Conversation
WalkthroughTwo modifications were made to the web view layout behavior in the FormbricksSDK. In FormbricksView.swift, the 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@Sources/FormbricksSDK/WebView/FormbricksView.swift`:
- Around line 9-10: The view currently calls SurveyWebView(surveyId:
viewModel.surveyId, htmlString: htmlString).ignoresSafeArea() which removes all
safe-area handling (including the keyboard) while SurveyWebView also sets
webView.scrollView.contentInsetAdjustmentBehavior = .never, so the system can't
adjust for the keyboard; change the ignoresSafeArea usage to limit it to the
container (e.g., use .ignoresSafeArea(.container)) and/or remove/adjust the
contentInsetAdjustmentBehavior in SurveyWebView (the webView.scrollView) so the
system can perform keyboard avoidance when text inputs are focused.
|



Fixes a bug with the ios sdk where the safe area was not ignored

Before:
After:
