removed throws

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2024-06-25 13:37:45 -05:00
parent 67e055878d
commit 3589e1230a

View File

@ -328,7 +328,7 @@ extension DatePicker {
return nil 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 sourceFrameInParent = sourceView.convert(sourceView.bounds, to: parentView)
let parentBounds = parentView.bounds let parentBounds = parentView.bounds
let safeAreaInsets = parentView.safeAreaInsets let safeAreaInsets = parentView.safeAreaInsets
@ -394,6 +394,8 @@ extension DatePicker {
popoverY = sourceFrameInParent.maxY + spacing popoverY = sourceFrameInParent.maxY + spacing
} else { } else {
//return nil since there is no way we can show the popover without a scrollview
return nil return nil
} }
} }