DeckTransition icon indicating copy to clipboard operation
DeckTransition copied to clipboard

Possible to control inset / height?

Open aehlke opened this issue 5 years ago • 3 comments

On iPad, since the screen is so tall, I'd like the "card" view to only take up 1/3–1/2 of the screen. Is it possible to adjust the height of the view being transitioned to (or its inset to achieve the same)?

aehlke avatar Nov 02 '18 03:11 aehlke

I've been to see if a way to dynamically calculate the height can be done, since that's a better solution than insets. Will post here if there's any progress

HarshilShah avatar Nov 02 '18 05:11 HarshilShah

Same issue, I wonder if I can change the height of card view

MahdiRB avatar Dec 08 '18 12:12 MahdiRB

You have just to change the value of insetForPresentedView in Constants.swift. And it will work. Then @HarshilShah have to create a public variable to allow library users to change this value (default is 8).

iDevelopper avatar Dec 08 '18 14:12 iDevelopper