performSystemAnimation static method

void performSystemAnimation(
  1. UISystemAnimation animation, {
  2. required NSArray onViews,
  3. required UIViewAnimationOptions options,
  4. ObjCBlock<Void Function()>? animations,
  5. ObjCBlock<Void Function(Bool)>? completion,
})

performSystemAnimation:onViews:options:animations:completion:

Implementation

static void performSystemAnimation(
  UISystemAnimation animation, {
  required objc.NSArray onViews,
  required UIViewAnimationOptions options,
  objc.ObjCBlock<ffi.Void Function()>? animations,
  objc.ObjCBlock<ffi.Void Function(ffi.Bool)>? completion,
}) {
  objc.checkOsVersionInternal(
    'UIView.performSystemAnimation:onViews:options:animations:completion:',
    iOS: (false, (7, 0, 0)),
  );
  _objc_msgSend_fqrtz5(
    _class_UIView,
    _sel_performSystemAnimation_onViews_options_animations_completion_,
    animation.value,
    onViews.ref.pointer,
    options.value,
    animations?.ref.pointer ?? ffi.nullptr,
    completion?.ref.pointer ?? ffi.nullptr,
  );
}