-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
ScrollView contentOffset not adjusted correctly when form is displayed as page sheet and keyboard is displayed #1952
Comments
This might be related to this PR: #1833 However I do not use any Tabbar in my code. |
Probably also related to #1938. |
I did some more debugging and realized this issue is caused by Seems like an iOS 13 bug even though I am already running on iOS 13.3. |
I found a workaround: if let selectedRow = table.indexPath(for: cell) {
var rect = table.rectForRow(at: selectedRow)
if #available(iOSApplicationExtension 11.0, *) {
rect.origin.y -= table.safeAreaInsets.top
}
table.scrollRectToVisible(rect, animated: animateScroll)
} |
I created a PR: #1953 |
Hi @funkenstrahlen, thanks for reporting and providing a pull request. The way I understand it is an issue with Can I ask why you use |
Yes I hope Apple will fix this in a Future Release of iOS 13. I have not found time to report this to Apple yet.
As far as my testing goes it does work on iOS 12 too.
You are right. Using application extension check here is wrong. I did not give it a closer look as Xcode added this when clicking on auto-fix. If you want I can adjust the PR to fix that. |
Similiar to #1959. |
I am seeing this on iOS 14.4, gif attached. Eureka already has #1953 applied. |
…Controller Is Presented Modally
I did some digging. I have also tried playing with I have created a PR #2148. Please let me know what you think. |
…Controller Is Presented Modally
@philipbel I cannot reproduce this with the example app. There might be something else in your code provoking that issue. It would be helpful to have a small code snippet to reproduce that issue |
I discovered an issue with adjusting the form ScrollView
contentInset
andcontentOffset
when the user edits text in aTextAreaRow
. This becomes a problem as soon as the form is presented as an page sheet on iOS 13. It looks like the scrolling does not consider the additional top space added by the new page sheet presentation style.This only happens when the view is displayed with the page sheet style (space at the top).
Also the behavior is not consistent as you can see in this clip:
The same code on iOS 12 without the page sheet presentation style: Also not consistent but does not scroll badly so the first line is invisible:
I guess this is the code that needs some update to fix this:
Eureka/Source/Core/Core.swift
Lines 1009 to 1037 in 2924259
I tried to figure it out myself, but could not find a solution yet.
Environment: Eureka 5.1.0, Xcode 11.3
The text was updated successfully, but these errors were encountered: