resizableSnapshotViewFromRect method

UIView? resizableSnapshotViewFromRect(
  1. CGRect rect, {
  2. required bool afterScreenUpdates,
  3. required UIEdgeInsets withCapInsets,
})

resizableSnapshotViewFromRect:afterScreenUpdates:withCapInsets:

Implementation

UIView? resizableSnapshotViewFromRect(
  objc.CGRect rect, {
  required bool afterScreenUpdates,
  required UIEdgeInsets withCapInsets,
}) {
  objc.checkOsVersionInternal(
    'UIView.resizableSnapshotViewFromRect:afterScreenUpdates:withCapInsets:',
    iOS: (false, (7, 0, 0)),
  );
  final _ret = _objc_msgSend_qvletk(
    this.ref.pointer,
    _sel_resizableSnapshotViewFromRect_afterScreenUpdates_withCapInsets_,
    rect,
    afterScreenUpdates,
    withCapInsets,
  );
  return _ret.address == 0 ? null : UIView.castFromPointer(_ret, retain: true, release: true);
}