From Xojo Documentation


MobileScreen.Constraint(name As String) As iOSLayoutConstraint

Supported on Mobile.

Gets a reference to a named constraint so that you can modify its settings in code.

Sample Code

Change an existing (and named) constraint of a control on the Screen:

// "TAWidth" is a width constraint for a TextField that has been given
// a name in the auto-layout Inspector properties.
Var c As iOSLayoutConstraint = Self.Constraint("TAWidth")
c.Offset = 200


iOS projects on iOS and iPadOS systems.