// Converted to Swift 5.3 by Swiftify v5.3.18369 - https://swiftify.com/
if recognizer.state == began {
recognizer.scale = recognizer.scale + previousPinchRecogScale
} else if recognizer.state == changed {
if recognizer.scale > 5 {
recognizer.scale = 5
}
if recognizer.scale < 0.7 {
recognizer.scale = 0.7
}
va1 =
((6 - recognizer.scale) * 27.93)
setViewAngle(angle:va1)
} else if recognizer.state == ended {
previousPinchRecogScale = recognizer.scale
}
-0=-0=-0-=0=-0-=0=-0-=0=-0-=0-=0-=0=-0=-0-=0=-0=-0=-0=-0=-0=
var previousPinchRecogScale : CGFloat = 0.0
if(recognizer.state == .began) {
recognizer.scale = recognizer.scale + previousPinchRecogScale
} else if(recognizer.state == .changed) {
if(recognizer.scale > 5) { recognizer.scale = 5 }
if(recognizer.scale < 0.7) { recognizer.scale = 0.7 }
va1 = Float((6 - recognizer.scale) * 27.93)
setViewAngle(angle: va1)
} else if(recognizer.state == .ended) {
previousPinchRecogScale = recognizer.scale
}
'OpenSRC+ChatGPT' 카테고리의 다른 글
simd_float4x4 (0) | 2021.01.14 |
---|---|
App Store 정보 18.Dec.2020 (0) | 2020.12.18 |
pkg mng system. brew -> port (0) | 2020.11.27 |
#define to let (0) | 2020.11.26 |
drawrect (0) | 2020.11.25 |
최근댓글