Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Add contentInsetAdjustmentBehavior property to MGLMapView #12143

Closed

Description

@1ec5

In iOS 11.0, UIViewController.automaticallyAdjustsScrollViewInsets is deprecated in favor of UIScrollView.contentInsetAdjustmentBehavior. automaticallyAdjustsScrollViewInsets has always been a bit of a pain for us, versus how macOS handles the same configuration option, because it’s a property on the containing view controller instead of the view itself. (We have to crawl up the responder chain looking for the view controller just to update MGLMapView’s internal constraints.) MGLMapView should implement its own contentInsetAdjustmentBehavior property that lets the developer indicate whether the MGLMapView itself should adjust the insets automatically.

We’ll have to keep support for UIViewController.automaticallyAdjustsScrollViewInsets around until that property is removed from the (Apple) iOS SDK, in case any developer depends on the currently documented behavior.

/ref #12142 #10485
/cc @friedbunny @julianrex

Activity

  1. added
    iOS
    macOS
    on Jun 13, 2018
  2. added
    archived
    on Dec 11, 2018
  3. stale commented on Dec 11, 2018

    @stale

    This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

  4. removed
    archived
    on Dec 11, 2018
  5. added
    archived
    on Jun 9, 2019
  6. stale commented on Jun 9, 2019

    @stale

    This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

  7. removed
    archived
    on Jun 10, 2019
  8. added
    archived
    on Jul 29, 2020
  9. stale commented on Jul 29, 2020

    @stale

    This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    archivedgl-iosiOSmacOSrefactor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions