let iv = self.view.viewWithTag(4)
UIView.animate(withDuration: 2,animatons:{
iv.transfrom = iv.transfrom.rotated(by: CGFloat(360))
})
let iv =self.view.view(4)!
UIView.animate(withDuration: 2,animatons:{
iv.frame.orign.x += 100
if iv.frame.origin.x > self.view.feame.size.width{
iv.frame.origin.x = 0
}
})
let iv =self.view.viewWithTag(4)!
UIView.animate(withDuration: 2,animatons{
iv.transfrom=CGAffineTranfrom(scaleX: 0.8,y: 0.8)
})
let iv = self.view.viewWithTag(4)!
UIView.animate(withDuration: 2,animatons{
iv.alpha = 0.1
})