diff --git a/Sources/Instructions/Core/Public/CoachMark.swift b/Sources/Instructions/Core/Public/CoachMark.swift index 00e8a894..008b14b5 100644 --- a/Sources/Instructions/Core/Public/CoachMark.swift +++ b/Sources/Instructions/Core/Public/CoachMark.swift @@ -83,7 +83,9 @@ public struct CoachMark { return } - if cutoutPath.bounds.origin.y > frame.size.height / 2 { + let top = cutoutPath.bounds.origin.y + let bottom = frame.size.height - cutoutPath.bounds.origin.y - cutoutPath.bounds.height + if top > bottom { self.arrowOrientation = .bottom } else { self.arrowOrientation = .top