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
Copy file name to clipboardExpand all lines: XBottomSheet.Touch/Views/BottomSheetViewController.cs
+45-1Lines changed: 45 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,6 @@
1
1
usingSystem;
2
+
usingSystem.Diagnostics;
3
+
usingSystem.Linq;
2
4
usingCoreGraphics;
3
5
usingUIKit;
4
6
@@ -9,6 +11,7 @@ public partial class BottomSheetViewController : UIViewController
9
11
privatereadonlynfloattop;
10
12
privatereadonlynfloatmiddle;
11
13
privatereadonlynfloatbottom;
14
+
privatereadonlynfloatstartHeight;
12
15
privatereadonlyboolanimatedAppearance;
13
16
privatereadonlyBottomSheetStatedefaultState;
14
17
@@ -28,6 +31,25 @@ public BottomSheetState CurrentState
28
31
/// </summary>
29
32
publicnfloatDuration{get;set;}=-2;
30
33
34
+
/// <summary>
35
+
/// Create a new UIViewController that will behave as a BottomSheet control. As it will have the bottom stop point, there won't be autohide available. In order to have autohide, use the constructor without bottom parrameter.
36
+
/// </summary>
37
+
/// <param name="top">Top point for the control to expand to.</param>
38
+
/// <param name="middle">Middle point where control will stop. This can be used as default state as well.</param>
39
+
/// <param name="bottom">Point where control will stay as expanded at the bottom of the screen.</param>
40
+
/// <param name="startHeight">Point from where control will appear.</param>
41
+
/// <param name="animatedAppearance">Specify if control should appear animated.</param>
42
+
/// <param name="defaultState">Specify which state should be default when control appears.</param>
/// Create a new UIViewController that will behave as a BottomSheet control. As it will have the bottom stop point, there won't be autohide available. In order to have autohide, use the constructor without bottom parrameter.
33
55
/// </summary>
@@ -121,7 +143,11 @@ public void Hide(bool resetState)
121
143
/// <param name="customView">Custom UIView that will be shown instead of the default one.</param>
0 commit comments