From d3d32db2fa4d9653e54c8560110542a435dd5959 Mon Sep 17 00:00:00 2001 From: Kevin G Christiano Date: Mon, 31 Aug 2020 11:28:13 -0400 Subject: [PATCH] caret inset fix --- MVMCoreUI/Atomic/Atoms/Views/CaretView.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MVMCoreUI/Atomic/Atoms/Views/CaretView.swift b/MVMCoreUI/Atomic/Atoms/Views/CaretView.swift index 20023091..b3081654 100644 --- a/MVMCoreUI/Atomic/Atoms/Views/CaretView.swift +++ b/MVMCoreUI/Atomic/Atoms/Views/CaretView.swift @@ -121,22 +121,22 @@ open class CaretView: View { switch direction { case .up: caretPath.move(to: CGPoint(x: inset, y: frame.size.height - inset)) - caretPath.addLine(to: CGPoint(x: halfWidth, y: lineWidth)) + caretPath.addLine(to: CGPoint(x: halfWidth, y: inset)) caretPath.addLine(to: CGPoint(x: frame.size.width, y: frame.size.height)) case .right: caretPath.move(to: CGPoint(x: inset, y: inset)) - caretPath.addLine(to: CGPoint(x: frame.size.width - lineWidth, y: halfHeight)) + caretPath.addLine(to: CGPoint(x: frame.size.width - inset, y: halfHeight)) caretPath.addLine(to: CGPoint(x: inset, y: frame.size.height - inset)) case .down: caretPath.move(to: CGPoint(x: inset, y: inset)) - caretPath.addLine(to: CGPoint(x: halfWidth, y: frame.size.height - lineWidth)) + caretPath.addLine(to: CGPoint(x: halfWidth, y: frame.size.height - inset)) caretPath.addLine(to: CGPoint(x: frame.size.width - inset, y: inset)) case .left: caretPath.move(to: CGPoint(x: frame.size.width - inset, y: inset)) - caretPath.addLine(to: CGPoint(x: lineWidth, y: halfHeight)) + caretPath.addLine(to: CGPoint(x: inset, y: halfHeight)) caretPath.addLine(to: CGPoint(x: frame.size.width - inset, y: frame.size.height - inset)) }