From the image provided, it appears that the "Forgot your login details?" text and the "Get help signing in" button are separate UI elements that are placed next to each other to give the appearance of a single button.
To achieve this UI design, you can follow these steps:
-
Create two separate UI elements, one for the label and the other for the button.
-
Place the label and the button side by side, making sure that they are aligned properly and have sufficient spacing between them.
-
Set the background color of both UI elements to be the same to give the appearance of a single button.
-
Style the label and button to have a similar font, size, and color to create visual consistency.
-
For the "Get help signing in" button, add an event handler to handle the click event so that it performs the desired action when clicked.
-
To center the second line of the button text, set the button's title label's numberOfLines property to 0, which allows the label to display multiple lines of text. Then, set the contentHorizontalAlignment and contentVerticalAlignment properties of the button to UIControlContentHorizontalAlignment.center and UIControlContentVerticalAlignment.center, respectively. This centers the button's content both horizontally and vertically.
To know more about UI UX, It's recommended to join UI UX Design Certification Course today.