Nil is not compatible with expected argument type UIViewAnimationOptions

Solution 1:

You may replace options: nil with options: [] should make the error goes way.

Good luck !