@@ -19,16 +19,16 @@ public class KnobStyleKit : NSObject {
19
19
20
20
//// Drawing Methods
21
21
22
- @objc dynamic public class func drawKnobOne( frame targetFrame: CGRect = CGRect ( x: 0 , y: 0 , width: 120 , height: 120 ) , resizing: ResizingBehavior = . aspectFit, knobValue: CGFloat = 0.5 ) {
22
+ @objc dynamic public class func drawKnobOne( frame targetFrame: CGRect = CGRect ( x: 0 , y: 0 , width: 124 , height: 124 ) , resizing: ResizingBehavior = . aspectFit, knobValue: CGFloat = 0.5 ) {
23
23
//// General Declarations
24
24
let context = UIGraphicsGetCurrentContext ( ) !
25
25
26
26
//// Resize to Target Frame
27
27
context. saveGState ( )
28
- let resizedFrame : CGRect = resizing. apply ( rect: CGRect ( x: 0 , y: 0 , width: 120 , height: 120 ) , target: targetFrame)
28
+ let resizedFrame : CGRect = resizing. apply ( rect: CGRect ( x: 0 , y: 0 , width: 124 , height: 124 ) , target: targetFrame)
29
29
context. translateBy ( x: resizedFrame. minX, y: resizedFrame. minY)
30
- context. scaleBy ( x: resizedFrame. width / 120 , y: resizedFrame. height / 120 )
31
- let resizedShadowScale : CGFloat = min ( resizedFrame. width / 120 , resizedFrame. height / 120 )
30
+ context. scaleBy ( x: resizedFrame. width / 124 , y: resizedFrame. height / 124 )
31
+ let resizedShadowScale : CGFloat = min ( resizedFrame. width / 124 , resizedFrame. height / 124 )
32
32
33
33
34
34
//// Color Declarations
@@ -62,6 +62,7 @@ public class KnobStyleKit : NSObject {
62
62
63
63
//// Knob
64
64
context. saveGState ( )
65
+ context. translateBy ( x: 3 , y: 3 )
65
66
66
67
67
68
0 commit comments