I'm trying to place UI component depending of the size of the presented view, for instance having a button at the bottom of the drawer.
When testing it, it seems that the size of the presented view is never matching the size left from the custom gap. For instance, if I set a .leavesCustomGap(gap: 100), the view presented frame won't get shorter of 100. Therefore any elements at the bottom might not be visible.
I guess what I would expect is that if the drawer can have a maximum size of 500, its presented view and contained one would reflect the same size. That's not the case at the moment. Is it something available with DrawerKit?
To replicate it, inspect the view frame in a presented view controller (in viewDidAppear for instance), it will be the size of the screen regardless the maximum size available of the drawer.
I'm trying to place UI component depending of the size of the presented view, for instance having a button at the bottom of the drawer.
When testing it, it seems that the size of the presented view is never matching the size left from the custom gap. For instance, if I set a
.leavesCustomGap(gap: 100), the view presented frame won't get shorter of 100. Therefore any elements at the bottom might not be visible.I guess what I would expect is that if the drawer can have a maximum size of 500, its presented view and contained one would reflect the same size. That's not the case at the moment. Is it something available with DrawerKit?
To replicate it, inspect the view frame in a presented view controller (in
viewDidAppearfor instance), it will be the size of the screen regardless the maximum size available of the drawer.