removed throws
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
67e055878d
commit
3589e1230a
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user