Giter Site home page Giter Site logo

Comments (8)

bryceco avatar bryceco commented on August 15, 2024 1

Yes, that's a bug. You can go back to landscape and dismiss it, rather than force-quitting.

from gomap.

bryceco avatar bryceco commented on August 15, 2024 1

I've tried fixing this but I'm at a loss about what the cause is. Maybe somebody else would like to take a look at it:

let viewController = SFSafariViewController(url: url)

from gomap.

habi avatar habi commented on August 15, 2024

You can go back to landscape and dismiss it

Thanks, I really failed to think of this solution! ðŸĪŠ

from gomap.

patricks avatar patricks commented on August 15, 2024

I played around a bit with that problem, the same happens if I tap the "i" button on the main screen and rotate the wikipage screen (SFSafariViewController).

If I comment out the function override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) in the MainViewController the problem is fixed in both cases. This would be a really easy fix. But I don't know exactly why this function / animation is required. Maybe @bryceco knows more about it?

from gomap.

bryceco avatar bryceco commented on August 15, 2024

Thanks for looking at this! It's really appreciated!

That function simply updates the frame of the embedded MapView (which is the view that holds the various layers used for editing, aerial, etc. That view isn't tied to it's parent with constraints (because I wrote it before iOS introduced constraints, and then plugged up problems with fixes like this 😅) so I update the frame manually there. It's possible that function isn't needed anymore but it needs some testing to make sure.

from gomap.

patricks avatar patricks commented on August 15, 2024

but it needs some testing to make sure

Thanks for the informations. Can I help you somehow with the testing? I already played around with the app with this code disabled and didn't find/see any problems.

from gomap.

bryceco avatar bryceco commented on August 15, 2024

It looks like at some point I added constraints that take care of setting the frame, and I just confirmed that the frame is updating correctly without the function you mention so deleting it is fine. Send me a pull request! Thanks!

from gomap.

habi avatar habi commented on August 15, 2024

Awesome work, thanks!

from gomap.

Related Issues (20)

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.