특정 조건에 따라 인식할 제스처 선택
var gestures: some Gesture {
ExclusiveGesture(rotation.gesture, magnification.gesture)
}
var gestures: some Gesture {
ExclusiveGesture(rotation.gesture, magnification.gesture)
}
var body: some View {
VStack {
VStack {
if currentGestureType == .rotation {
logo
.rotationEffect(rotation.finalAngle)
.scaleEffect(magnification.finalScale)
.gesture(gestures)
} else {
logo
.rotationEffect(rotation.finalAngle)
.scaleEffect(magnification.finalScale)
.gesture(magnification.gesture.exclusively(before: rotation.gesture))
}
}