Skip to content

Conversation

@Hayd25
Copy link

@Hayd25 Hayd25 commented Jul 8, 2022

I needed to ability to display a Loaf center screen, so made a pull request, feel free to discard if you don't feel it will be useful to anyone else.

Thanks for the great repo, you have done a great job and it's come in very useful!

case .top:
dismissedFrame.origin.y = -size.height - 60
case .bottom:
dismissedFrame.origin.y = controller.view.bounds.height + 60
Copy link
Author

@Hayd25 Hayd25 Jul 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: for the bottom being the controller height + 60, I wondered if maybe it was meant to be just size.height + 60? That way it will animate up from 60 below its final bottom coordinate rather than shoot up from far below the screen.

Thanks again for the well written library!

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

Successfully merging this pull request may close these issues.

1 participant