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
Initially the floating panel is hidden. When a button is tapped, it comes into the half position. Then user can go back and forth between full and half by swiping. But since initially hidden was also added as a supported position, if I swipe down while the panel is in the half position, it slides down and goes into the hidden position.
Expected behavior
I want to have the panel hidden initially but after showing it, I want to keep it between half and full positions.
Steps to reproduce
classCumtomFloatingPanelLayout:FloatingPanelLayout{varinitialPosition:FloatingPanelPosition{return.hidden
}varsupportedPositions:Set<FloatingPanelPosition>{return[.hidden,.half,.full]}func insetFor(position:FloatingPanelPosition)->CGFloat?{
switch position {case.full:return200case.half:return240case.hidden,.tip:returnnil}}}
How do you display panel(s)?
Add as child view controllers
Present modally
How many panels do you displays?
1
2+
Environment
Library version
1.7.4
Installation method
CocoaPods
Carthage
Swift Package Manager
iOS version(s)
13.4
Xcode version
11.4.1
The text was updated successfully, but these errors were encountered:
Description
Initially the floating panel is hidden. When a button is tapped, it comes into the half position. Then user can go back and forth between full and half by swiping. But since initially hidden was also added as a supported position, if I swipe down while the panel is in the half position, it slides down and goes into the hidden position.
Expected behavior
I want to have the panel hidden initially but after showing it, I want to keep it between half and full positions.
Steps to reproduce
How do you display panel(s)?
How many panels do you displays?
Environment
Library version
1.7.4
Installation method
iOS version(s)
13.4
Xcode version
11.4.1
The text was updated successfully, but these errors were encountered: