From b1b7365812a33e31f7fe206be8b15baa64c57527 Mon Sep 17 00:00:00 2001 From: Vitalii Tim Date: Mon, 4 Nov 2019 17:30:36 +0200 Subject: [PATCH] fixed broken corner in case the corner is very close to an edge but not exactly at that edge yet --- Classes/Popover.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/Popover.swift b/Classes/Popover.swift index 6618bf4..2a6aa60 100644 --- a/Classes/Popover.swift +++ b/Classes/Popover.swift @@ -623,11 +623,11 @@ private extension Popover { } var isCornerLeftArrow: Bool { - return self.arrowShowPoint.x == self.frame.origin.x + return self.arrowShowPoint.x <= self.frame.origin.x + arrowSize.width + cornerRadius } var isCornerRightArrow: Bool { - return self.arrowShowPoint.x == self.frame.origin.x + self.bounds.width + return self.arrowShowPoint.x >= (self.frame.origin.x + self.bounds.width) - arrowSize.width - cornerRadius } func radians(_ degrees: CGFloat) -> CGFloat {