tweak visual effect for touchPads
This commit is contained in:
1 parent
d493cba990
commit
c713eafac0
1 file changed
+2
-2
@@ -272,7 +272,7 @@ import UIKit
|
|||||||
|
|
||||||
indicatorFrame.frame = CGRectMake(0, 0, 80, 80)
|
indicatorFrame.frame = CGRectMake(0, 0, 80, 80)
|
||||||
indicatorFrame.cornerRadius = 9
|
indicatorFrame.cornerRadius = 9
|
||||||
indicatorBorder.borderWidth = 9
|
indicatorBorder.borderWidth = 7.5
|
||||||
indicatorBorder.frame = indicatorFrame.bounds.insetBy(dx: -indicatorBorder.borderWidth, dy: -indicatorBorder.borderWidth) // Adjust the inset as needed
|
indicatorBorder.frame = indicatorFrame.bounds.insetBy(dx: -indicatorBorder.borderWidth, dy: -indicatorBorder.borderWidth) // Adjust the inset as needed
|
||||||
indicatorBorder.borderColor = UIColor.clear.cgColor
|
indicatorBorder.borderColor = UIColor.clear.cgColor
|
||||||
|
|
||||||
@@ -410,7 +410,7 @@ import UIKit
|
|||||||
let indicatorFrame = CAShapeLayer();
|
let indicatorFrame = CAShapeLayer();
|
||||||
let indicatorBorder = CAShapeLayer();
|
let indicatorBorder = CAShapeLayer();
|
||||||
|
|
||||||
indicatorFrame.frame = CGRectMake(0, 0, 80, 80)
|
indicatorFrame.frame = CGRectMake(0, 0, 78.5, 78.5)
|
||||||
indicatorFrame.cornerRadius = 9
|
indicatorFrame.cornerRadius = 9
|
||||||
indicatorBorder.borderWidth = 6
|
indicatorBorder.borderWidth = 6
|
||||||
indicatorBorder.frame = indicatorFrame.bounds.insetBy(dx: -indicatorBorder.borderWidth, dy: -indicatorBorder.borderWidth) // Adjust the inset as needed
|
indicatorBorder.frame = indicatorFrame.bounds.insetBy(dx: -indicatorBorder.borderWidth, dy: -indicatorBorder.borderWidth) // Adjust the inset as needed
|
||||||
|
|||||||
Reference in new issue
Block a user