title property

NSString? get title

The title displayed alongside the switch, positioned appropriately for the @c UIUserInterfaceIdiom. @note This property is only supported for Catalyst in the Mac idiom.

Implementation

objc.NSString? get title {
  objc.checkOsVersionInternal('UISwitch.title', iOS: (false, (14, 0, 0)));
  final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_title);
  return _ret.address == 0 ? null : objc.NSString.castFromPointer(_ret, retain: true, release: true);
}
set title (NSString? value)

The title displayed alongside the switch, positioned appropriately for the @c UIUserInterfaceIdiom. @note This property is only supported for Catalyst in the Mac idiom.

Implementation

set title(objc.NSString? value) {
  objc.checkOsVersionInternal('UISwitch.setTitle:', iOS: (false, (14, 0, 0)));
  _objc_msgSend_xtuoz7(this.ref.pointer, _sel_setTitle_, value?.ref.pointer ?? ffi.nullptr);
}