ios - animation on alert box -


i have alert box , apply below animation when "appears":

scale 0.94 1.0 opacity 0 1 time 0.50ms x1: 0.48, y1: 0.44, x2: 0.01, y2: 1.2 

can guide on how achieve in swift ?

code:

self.view.alpha = 0     uiview.animatewithduration(0.05,                 animations: { () -> void in                     self.view.alpha = 1.0                 }, 

thanks.

self.view.frame.origin = cgpoint(x: 0.48, y: 0.44) self.view.layer.transform = catransform3dmakescale(0.94, 0.94, 1) self.view.alpha = 0      uiview.animatewithduration(0.05,             animations: { () -> void in                   self.view.layer.transform = cgaffinetransformidentity                   self.view.alpha = 1.0                   self.view.frame.origin =  cgpoint(x: 0.01, y: 1.2)                   self.view.layoutifneeded()             }) 

Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

jsf - disable onscroll event of the icefaces datatable -