UILayoutGuide: identifier property
The identifier property is a name given to the layout guide, used only to identify it when debugging.
Value
A string.
- Readable and writable.
- The default value is not verified in the simulator.
- Writing
nullorundefinedgives''; other values are converted to strings. Unlike a constraint'sidentifier, it is nevernull.
Examples
js
const spacer = new UILayoutGuide();
spacer.identifier = 'spacer';
console.log(spacer.identifier);Result: logs spacer.
Corresponding iOS API
UILayoutGuide.identifier.