Skip to content
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

IPhone X support #19

Closed
nyekimov opened this issue Jan 18, 2018 · 7 comments
Closed

IPhone X support #19

nyekimov opened this issue Jan 18, 2018 · 7 comments

Comments

@nyekimov
Copy link

Default implementation of the LicensesViewController doesn't respect safe area of the view and when you scroll through data it overlaps interactive controls at the very bottom of the screen. I believe the updateViewConstraints() needs to be updated per ios 11.

@carloe carloe added the bug label Jan 19, 2018
@carloe
Copy link
Owner

carloe commented Jan 19, 2018

@nyekimov Thanks for this.

Could you elaborate on what kind of controls you are talking about / what your usecase is? From what I can see the LicensesViewController is working correctly when it's embedded in a UITabBarController. It also seems to have the correct content offsets when used in a UINavigationController.

@nyekimov
Copy link
Author

nyekimov commented Jan 19, 2018

The interactive controls at the very bottom of the screen is apple terminology from https://developer.apple.com/ios/human-interface-guidelines/overview/iphone-x/.

Attaching a screenshot on which text overlaps very bottom interactive controls. If I scroll till the end of the table view, bottom inset is in place. However text overlapping at scrolling isn't correct behavior. Bottom / Top layout guides should be used with constraints since ios 9. In iOS 11 apple introduces safe area which works perfectly if layout guides are in place.

Pushed a PR with a possible fix, please take a look.
simulator screen shot - iphone x - 2018-01-19 at 09 56 49

@nyekimov
Copy link
Author

actually checked another table views and usually content overlaps bottom controls. It's a normal behavior for table view cells. The behavior can be changed manually if developer wishes when developer has access to the view controller. Here is an issue that developer can't customize LicensesViewController.
Any suggestions?
Issue probably can be closed.

@carloe
Copy link
Owner

carloe commented Jan 19, 2018

Thank you for clarifying!

I checked the docs you linked & looked at safari as reference, and I think the layout is behaving as it should. In portrait it matches what safari does, and in landscape it does take the safe zones into account. I believe they are talking about UITabBar, UIButton, UIToolbar, etc when they are talking about 'interactive controls' here.

Please let me know if you still disagree. Screenshots for reference (Safari, LicenseViewController scrolled to top, LicenseViewController scrolled to bottom, LicenseViewController in landscape mode):

group 2

@carloe
Copy link
Owner

carloe commented Jan 19, 2018

Good point... The tableView property of LicensesViewController should probably be open. Then you should be able do what you are trying to do. What do you think?

@nyekimov
Copy link
Author

@carloe yeah this should probably help.

@carloe
Copy link
Owner

carloe commented Jan 19, 2018

@nyekimov ok, I will push that change with 0.6.5 as soon as the PR #21 build passes. Thanks again for the feedback!

@carloe carloe closed this as completed Jan 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants