Giter VIP home page Giter VIP logo

Comments (4)

amyleecodes avatar amyleecodes commented on May 15, 2024

Sure. So, I want to start by mentioning that using Pulley in Storyboards is a bit of a hack. The view hierarchy in Storyboards doesn’t actually match what Pulley rebuilds internally, so I’m not surprised it doesn’t behave well in that circumstance.

But, there is a solution! You want to make a new view controller with a full screen container view, then use an embed segue with that container view to embed the Pulley View Controller that you have into that view controller. In that new parent view controller, you can put a view on top of the container view the Pulley VC is embedded in, and it should work properly.

If that wasn’t clear, let me know and I’ll make a quick sample project showing it.

Thanks!

from pulley.

ShawnBaek avatar ShawnBaek commented on May 15, 2024

@Brendan09 Could you sending or updating sample project?

from pulley.

amyleecodes avatar amyleecodes commented on May 15, 2024

Here is a zip file containing a sample project that does this: https://www.dropbox.com/s/hurzxag6tx64zbp/Pulley-Floating%20Content.zip?dl=0

It's done in the Storyboard, using a Container View in the new initial view controller I've added to the Storyboard. Anything 'above' the container view in that view controller will 'float' over the drawer and primary content view controllers. In this sample, it's a UILabel.

Be careful: Anything that is user interactive (for example a large UIView) will steal touches, even if it's transparent, unless you disable user interaction on the view. You obviously need user interaction enabled on controls, but I'd recommend disabling it on anything not essential.

Reminder: If you disable user interaction on a view containing controls then the controls will be disabled as well.

Let me know if you have any questions.

@ShawnBaek @ivanmkc

from pulley.

ShawnBaek avatar ShawnBaek commented on May 15, 2024

from pulley.

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.