transitionWithView static method

void transitionWithView(
  1. UIView view, {
  2. required double duration,
  3. required UIViewAnimationOptions options,
  4. ObjCBlock<Void Function()>? animations,
  5. ObjCBlock<Void Function(Bool)>? completion,
})

transitionWithView:duration:options:animations:completion:

Implementation

static void transitionWithView(
  UIView view, {
  required double duration,
  required UIViewAnimationOptions options,
  objc.ObjCBlock<ffi.Void Function()>? animations,
  objc.ObjCBlock<ffi.Void Function(ffi.Bool)>? completion,
}) {
  objc.checkOsVersionInternal(
    'UIView.transitionWithView:duration:options:animations:completion:',
    iOS: (false, (4, 0, 0)),
  );
  _objc_msgSend_q6v4dl(
    _class_UIView,
    _sel_transitionWithView_duration_options_animations_completion_,
    view.ref.pointer,
    duration,
    options.value,
    animations?.ref.pointer ?? ffi.nullptr,
    completion?.ref.pointer ?? ffi.nullptr,
  );
}