I have created a modal component with various elements that is working great - apart from the alignment of a ‘close’ button. I have used auto-layout for most of the elements to control the resizing of the modal when different lengths of text are used. I would like the ‘close’ button to always be pinned top left and move with the height of the modal frame.
See video linked below:
I have also tried grouping this ‘close’ button in a number of combinations, all with the same result.
Unfortunately, I’m unable to access the Google Drive link you’ve shared. However, I believe using absolute positioning could help you. Absolute position excludes an object from an auto layout flow while keeping it in the auto layout frame. The object and its surrounding siblings ignore each other, even as they resize and move.