GithubHelp home page GithubHelp logo

Comments (5)

f0rr0 avatar f0rr0 commented on August 15, 2024 2

Hey, @osdnk can you please explain what you did in your lib to make this work? Is the link mentioned in the comment still pointing to the relevant line?

from panmodal.

ste57 avatar ste57 commented on August 15, 2024 1

Hi @cdstamper

Apologies for the delayed response & thanks for reporting. Unfortunately, I don't think the issue around definesPresentationContext being respected across child view controllers is specific to this library. From what I understand, this is a bug within the iOS presentation API - when using .custom as the presentationStyle - we don't automatically get the first VC in the hierarchy that has definesPresentationContext set to true. Specific to PanModal, since we rely pretty heavily on a custom presentationController, it would be pretty difficult to support an overCurrentContext type style without having to directly manipulate the presentingViewController's own view hierarchy - which can lead to unexpected results.

Let me know if this answers your question.
Stephen

from panmodal.

danqing avatar danqing commented on August 15, 2024

+1 on overCurrentContext. I'm trying to do a modal that looks like what's in Apple Maps - a UIVisualEffectsView that has the presenting VC blurred underneath. This isn't possible with the current set up.

from panmodal.

Datastore24Kirill avatar Datastore24Kirill commented on August 15, 2024

+1

from panmodal.

osdnk avatar osdnk commented on August 15, 2024

You're always welcome to do reparenting ¯_(ツ)_/¯
I made it workable with some workaround in my lib (bindings for PanModal for RN)
https://github.com/osdnk/react-native-slack-bottom-sheet/blob/master/ios/UIViewController%2BPanModalPresenter.swift#L25

from panmodal.

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.