iOS AssistiveTouch slow animation when using custom keyboard -


i'm building custom keyboard, fine now, except when i'm using assistivetouch during custom keyboard enabled, animation of assistivetouch little bit laggy (slow zoom in , zoom out) when tap open it.

i tested on iphone 4s , iphone 6 , same trouble, think not device hardware or resource consume.

anyone having same trouble or know reason? , how solve ?

i found reason myself. because of shadow. added shadow each button, after remove shadow, lag didn't appear anymore.

so suggest better way add shadow button without laggy?

this way add shadow button:

button.layer.maskstobounds = false         button.layer.shadowcolor = uicolor(rgb: 0x000000, alpha: 0.5).cgcolor         button.layer.shadowopacity = 1.0         button.layer.shadowradius = 0         button.layer.shadowoffset = cgsizemake(0, 1.0) 

Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

qt - How to embed QML toolbar and menubar into QMainWindow -