You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use dynamic height of bottom sheet, I followed the pull to dismiss from example, created a static variable of my content height but before get content height the delegate called,
func sheetPositions(_ availableHeight: CGFloat) -> [CGFloat] { let contentHeight = StudentIDViewController.contentHeight let topPosition = availableHeight - contentHeighy let bottomePosition = 1.1*availableHeight return [topPosition, bottomePosition] }
StudentIDViewController is my bottom sheet VC.
is there another way to doing that, or how can I get my content view height before delegate call.
Thanks
The text was updated successfully, but these errors were encountered:
spend the whole night to searching for dynamic height bottom sheet, try different libraries but this one is best of all, so I figured it out how can we use dynamic height for this,
I used separate view and xib file for bottom sheet, constraint your content view to 0 all bottom, top, trailing, leading and then set top constraint relation to greater than or equal, and set the the initial position and positions as below and set you main view background as clear
Hello,
I want to use dynamic height of bottom sheet, I followed the pull to dismiss from example, created a static variable of my content height but before get content height the delegate called,
func sheetPositions(_ availableHeight: CGFloat) -> [CGFloat] { let contentHeight = StudentIDViewController.contentHeight let topPosition = availableHeight - contentHeighy let bottomePosition = 1.1*availableHeight return [topPosition, bottomePosition] }
StudentIDViewController is my bottom sheet VC.
is there another way to doing that, or how can I get my content view height before delegate call.
Thanks
The text was updated successfully, but these errors were encountered: