aligning with invision.
This commit is contained in:
parent
66e45378f4
commit
bbdb2181f2
@ -244,10 +244,17 @@ import MVMCore
|
|||||||
/// Returns a UIBezierPath detailing the path of a checkmark
|
/// Returns a UIBezierPath detailing the path of a checkmark
|
||||||
func checkMarkPath() -> CGPath {
|
func checkMarkPath() -> CGPath {
|
||||||
|
|
||||||
let sideLength = max(bounds.size.height, bounds.size.width)
|
let length = max(bounds.size.height, bounds.size.width)
|
||||||
let startPoint = CGPoint(x: 0.33871 * sideLength, y: 0.53225 * sideLength)
|
let xInsetLeft = length * 0.25
|
||||||
let pivotOffSet = CGPoint(x: 0.46774 * sideLength, y: 0.64516 * sideLength)
|
let xInsetRight = length * 0.25
|
||||||
let endOffset = CGPoint(x: 0.66935 * sideLength , y: 0.37097 * sideLength)
|
let yInsetTop = length * 0.3
|
||||||
|
let yInsetBottom = length * 0.35
|
||||||
|
let innerWidth = length - (xInsetLeft + xInsetRight)
|
||||||
|
let innerHeight = length - (yInsetTop + yInsetBottom)
|
||||||
|
|
||||||
|
let startPoint = CGPoint(x: xInsetLeft, y: yInsetTop + (innerHeight / 2))
|
||||||
|
let pivotOffSet = CGPoint(x: xInsetLeft + (innerWidth * 0.33), y: yInsetTop + innerHeight)
|
||||||
|
let endOffset = CGPoint(x: xInsetLeft + innerWidth, y: yInsetTop)
|
||||||
|
|
||||||
let bezierPath = UIBezierPath()
|
let bezierPath = UIBezierPath()
|
||||||
bezierPath.move(to: startPoint)
|
bezierPath.move(to: startPoint)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user