iOSGraphics.Width

From Xojo Documentation

Read-Only Property (As Integer )
IntegerValue = aiOSGraphics.Width

Supported on Mobile (iOS).

The width of the graphics area, in points.

Sample Code

From within an iOSCanvas.Paint event handler:

g.LineColor = Color.Blue
g.DrawLine(0, 0, g.Width, g.Height)