Passcode Button UI

Hello All:


When unlocking an Apple Watch with the passcode, taps on a button emphasises the touch with a bit of zoom animation. A similar effect can be seen when using the Watch Calculator app. Is this effect public? In my app, I too need a numeric keyboard, and this effect would really help.


Is there some flag in Interface builder that I've missed? Is there some sample code that I've missed?


Any information would be appreciated.


Thanks very much for your time


Stay Safe



John

Replies

I think it is just creating a secondary image and animating with it:


https://stackoverflow.com/questions/27422643/how-to-make-an-animated-button-in-apple-watchkit

Hi Claude:


A little test harness I bashed together kinda works. Problem is that any items around a button I'm animating moves. If you check out the Watch unlock or Calculator, the resized buttons are 'over' the button beneath it. And there's the bit that a number in the corner like 7 or nine expand into the center; where 5 zooms up in all directions. I'm going to play around with UIGraphics and friends and see what I can see.


Any constructive ideas are appreciated.



John