Coder Social home page Coder Social logo

mutedtostandardbug's Introduction

MKMapView Muted-to-Standard Map Type Bug

This is a demonstration of a problem that manifests itself in iOS 13 where changes to a map view type as you go from .standard to .mutedStandard is not reflected in the UI. If you move the map a little (including using userTrackingMode of .follow or manually dragging), the change is suddenly reflected. But if you're not moving the map, the change is not reflected.

Bad

You can also force the map view to be re-rendered by either:

  • Reset the centerCoordinate of the map view.
  • Instead of going directly from .standard to .mutedStandard (or vice versa), change to .satellite first, and it works.

Good

Obviously, both of those are fairly kludgy workarounds for this iOS 13 issue, but they work.

The bug does not manifest itself in the following scenrios:

  • Works as expected in iOS 12; only an issue in iOS 13.
  • Works as expected when going from .standard/.mutedStandard to .satellite/.hybrid or vice versa; only an issue when going between .standard and .mutedStandard.

The salient code is found in the ViewController.

Iโ€™m running Xcode 11.4 (11E146) on Catalina 10.15.4 (19E266) on MacBook Pro (15-inch, 2018). The behavior manifests in both devices and simulators, but in iOS 13 only.


April 3, 2020

Copyright (c) 2020 Rob Ryan. All Rights Reserved.

See License.

mutedtostandardbug's People

Contributors

robertmryan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.