Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

topHalf Behavior but with Dynamic Height #154

Open
cliftonlabrum opened this issue Jul 12, 2018 · 5 comments
Open

topHalf Behavior but with Dynamic Height #154

cliftonlabrum opened this issue Jul 12, 2018 · 5 comments

Comments

@cliftonlabrum
Copy link

First of all, this framework is super cool and has saved me tons of hassle. I don't use much third-party code, but this is fantastic. :)

I'm trying to create alerts that slide down from the top of the screen just like the topHalf kind (like this), but I want them to have their height driven dynamically by the auto layout constraints in the presented view.

I'm a bit confused on how to get that behavior because it seems the dynamic PresentationType only centers the view.

How can I have the popup slide down from the top (and ideally slide back up when dismissed) and have a dynamic height?

@danlozano
Copy link
Contributor

Hi @cliftonlabrum !

Right now I don't think this is possible. You could calculate the height before hand using the system provided method, and then tell Presentr that height, for now...

But yeah, right now dynamic auto layout is a PresentationType that applies sizing to both width and height, and it just gives you the choice of supplying it's center position.

BUT

All of these are actually highly requested features, I'm working on them right now, and they will be out in a week or two in version 2.0 that I'm just now making the final changes to it.

In version 2.0 you are going to be able to select dynamic sizing for just width or just height or both. AND there is going to be a new position type that lets you stick views to top or bottom or side or corner, etc...

So you can easily say: give this view full screen width, make the height dynamic, and make it stick to the top.

That will be out soon and I'll let you know when it's ready to test out and on the master branch, so you can start using it, and will be released soon thereafter.

Thanks for using Presentr! :)

@cliftonlabrum
Copy link
Author

Sounds great. I'm looking forward to it. :)

@bernikovich
Copy link

Waiting for updates. :)

@hukjordanjanaq
Copy link

Still waiting for updates :(

@cliftonlabrum
Copy link
Author

I think the developer has moved on to other things. You might consider SwiftMessages. I recently implemented it in a project and it works quite well: https://github.com/SwiftKickMobile/SwiftMessages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants