Language

touch(pinch) to scale a game object

hello guys i have been going crazy with this: i have a game object in my scene and i want to rotate it on -+ x axis and scale it up and down (using pinch) with limits by touch. i think i got the rotate part covered, but for scale issue, i have no luck. i tried and tried local scale to achieve i want but no luck. so i would appreciate any help i can get. by the way this is for an augmented reality iOS app.

here is the code i am using for rotation, and like i said i would like to implement the scaling into this. i sincerely appreciate every help. thank you guys in advance