Skip to content

Weird behaviour after accessing bottomLayoutGuide with iOS14 #397

@closure11

Description

@closure11

@Describe the bug

Once I access ScrollingNavigationController's bottomLayoutGuide.length (even just print it), the awsome scrolling behaviour will be broken. I know bottomLayoutGuide was deprecated, but another library I used called this property.

  • This only happened with iOS14, Xcode12.0.
  • If I changed to use safeAreaInsets.bottom, this fixed.

To Reproduce
Steps to reproduce the behavior:

  1. Clone the source code, open demo project.
  2. In any child view controller , call navigationController?.bottomLayoutGuide.length

Expected behavior
Scrolling behaviour goes well as usual.

Screenshots
Here are the reproduction codes

Sep-24-2020 15-01-09

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions