Open idevChandra6 opened 3 years ago
I'm sorry I can understand what behavior is "properly". One I guess is that you might want the content always fits the visible area of a panel. If so, you are able to use fitToBounds
content mode of FloatingPanelController
. See also Scale the content view when the surface position changes section in README for more detail.
Description
Setting a
UIViewController
ascontentViewController
for afloatingPanel
does not fit properlyExpected behavior
The contents of
contentViewController
'sview
should fit thefloatingPanel
properlyActual behavior
The contents of the view controller stretches beyond the floatingPanel's bounds
Steps to reproduce
FloatingPanelController
(FPC)UIViewController
(VC) from StoryboardCode example that reproduces the issue
How do you display panel(s)?
self.present(floatingPanel, animated: true, completion: nil)
How many panels do you displays?
Environment
Library version Latest
Installation method
iOS version(s) iOS 14.5.1
Xcode version Version 12.5 (12E262)