The documentation for positioning things on an iOS screen is hard to follow. It is clear that the Left, Top, Width, and Height of the DesktopCanvas realm are read only in iOS and it is necessary to connect to the layout somehow, apparently by giving names to individual constraints.
The iOSlayoutConstraint documentation shows a similar solution for a Button, but it is unclear if it can be applied to a canvas.
For my purposes, it is probably fine to create a new canvas every time I need a new shape/position, but I do not understand where the code to do so should go and what the steps should be.
Is anyone doing this?
4 posts - 3 participants