Basic UIView Animation Swift #2

Опубликовано: 23 Апрель 2021
на канале: iOS Shiga
216
1

Animate changes to one or more views using the specified duration, delay, options, and completion handler.

This method initiates a set of animations to perform on the view. The block object in the animations parameter contains the code for animating the properties of one or more views.
During an animation, user interactions are temporarily disabled for the views being animated. (Prior to iOS 5, user interactions are disabled for the entire application.) If you want users to be able to interact with the views, include the allow user interaction constant in the options parameter.