Contents don't resize with the frame

I have this component made with auto layout, and I thought I’ve done it correctly. On its own if I expand the width, the input field fills the space, but when I have it placed in a frame and want to see what it will look like when the user uses a larger screen size or device, it doesn’t stretch out.

Have you added it to auto-layout with Fill horizontal sizing rule, or used Constraints to set how it scales?

I think I’ve figured it out. It was the constraints…Newbie here, was overtired and didnt think to check the drop down menu for constraints - that you can set it for left AND right. Hopefully this solves my problem with auto layout… Thanks Fernando