public SwipeUpScrollViewController() : base() { _slidingUpWindow = new UIWindow(UIScreen.MainScreen.Bounds); _slidingUpWindow.ClipsToBounds = true; _slidingUpWindow.BackgroundColor = UIColor.Clear; _slidingUpWindow.WindowLevel = UIWindowLevel.Alert; _slidingUpWindow.Hidden = false; CoverStatusBar = false; CoverNavigationBar = true; _hasFirstLoaded = false; SwipeUpScrollViewHeight = 0; _slidingContentViewController = new SlidingContentViewController(this); _slidingUpWindow.RootViewController = _slidingContentViewController; }
public SwipeUpScrollViewDelegate(SlidingContentViewController swipeUpScrollViewController, UIScrollView scrollView, HitTestView hitTestView) { _slidingContentScrollViewController = swipeUpScrollViewController; _scrollView = scrollView; _scrollView.ShowsVerticalScrollIndicator = false; _scrollView.ShowsHorizontalScrollIndicator = false; _scrollView.ClipsToBounds = false; _scrollView.AlwaysBounceVertical = true; _scrollView.DirectionalLockEnabled = true; _hitTestView = hitTestView; _scrollView.Scrolled += (sender, e) => Scrolled(); _scrollView.DecelerationEnded += (sender, e) => DecelerationEnded(); var tapGestureRecogniser = new UITapGestureRecognizer(); tapGestureRecogniser.AddTarget(ScrollViewTapped); _scrollView.AddGestureRecognizer(tapGestureRecogniser); }