localizedAttributedStringWithFormat static method

NSAttributedString localizedAttributedStringWithFormat(
  1. NSAttributedString format
)

localizedAttributedStringWithFormat:

iOS: introduced 15.0.0 macOS: introduced 12.0.0

Implementation

static NSAttributedString localizedAttributedStringWithFormat(
  NSAttributedString format,
) {
  objc.checkOsVersionInternal(
    'NSAttributedString.localizedAttributedStringWithFormat:',
    iOS: (false, (15, 0, 0)),
    macOS: (false, (12, 0, 0)),
  );
  final $ret = _objc_msgSend_1sotr3r(
    _class_NSAttributedString,
    _sel_localizedAttributedStringWithFormat_,
    format.ref.pointer,
  );
  return NSAttributedString.fromPointer($ret, retain: true, release: true);
}