some more documentation on how to use the custom detent

This commit is contained in:
Mauro Romito
2022-11-18 11:33:40 +01:00
parent 47fdbbbe40
commit f2611bf7cd
@@ -26,6 +26,9 @@ class VectorHostingBottomSheetPreferences {
case large
/// only available on iOS16, medium behaviour will be used instead
/// - Parameters:
/// - height: The height of the custom detent, if the height is bigger than the maximum possible height for a detent the latter will be returned
/// - identifier: The identifier used to identify the custom detent during detent transitions, by default the value is set to "custom", however if you are supporting multiple custom detents in a bottom sheet, you should specify a different identifier for each
case custom(height: CGFloat, identifier: String = "custom")
@available(iOS 15, *)