Here is my animation...one weird thing is when I type in a text field and hit done I proceed to set txtdata.text = ""..... and after that my image animation coordinates get all messed up.
    override func viewDidAppear(_ animated: Bool) {
    UIView.animate(withDuration: 15.0, delay: 0, options: [.repeat, .autoreverse], animations: {
        self.smallCloud.center = CGPoint(x: self.screenSize.maxX  , y:self.r.origin.y)
    }, completion: nil)      
}  ///////////////////////////////////////////////////////////////
open func textFieldShouldReturn(_ textField: UITextField) -> Bool {
            txtData.text = "";
    return false
}
so the image basically moves from one side to another...if i dont hit done on the keypad the image moves as expected, however as soon as I hit done and put the UITextField back to " "; the image gets out of wack and goes off the screen anyone have any idea whats going on here?
