From 3589e1230a7ab990e8a1badb58a0c0839aa02096 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Tue, 25 Jun 2024 13:37:45 -0500 Subject: [PATCH] removed throws Signed-off-by: Matt Bruce --- VDS/Components/DatePicker/DatePicker.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/VDS/Components/DatePicker/DatePicker.swift b/VDS/Components/DatePicker/DatePicker.swift index e8d13b27..0ae5f47c 100644 --- a/VDS/Components/DatePicker/DatePicker.swift +++ b/VDS/Components/DatePicker/DatePicker.swift @@ -328,7 +328,7 @@ extension DatePicker { return nil } - private func calculatePopoverPosition(relativeTo sourceView: UIView, in parentView: UIView, size: CGSize, with spacing: CGFloat) throws -> CGPoint? { + private func calculatePopoverPosition(relativeTo sourceView: UIView, in parentView: UIView, size: CGSize, with spacing: CGFloat) -> CGPoint? { let sourceFrameInParent = sourceView.convert(sourceView.bounds, to: parentView) let parentBounds = parentView.bounds let safeAreaInsets = parentView.safeAreaInsets @@ -394,6 +394,8 @@ extension DatePicker { popoverY = sourceFrameInParent.maxY + spacing } else { + + //return nil since there is no way we can show the popover without a scrollview return nil } }