InsideDarkWeb.com

Text field problems Xcode

I’m creating an app and need to make a signup/login page. I added a background using a picture and a zstack and on top I have the text and text fields. The text fields are showing up but not allowing me to add padding as well as there is no title text showing. Please help.my code

Did some more testing to find out that this happens whenever I use a textfield over an image. Not sure if this is a bug or not but it seems to be because as soon as the zstack is removed everything works.

At last ive discovered the issue, the text fields are extending way out of the canvas. Ive fixed the width of the textfield as a temporary solution but still looking for a way to fix this relative to the screen rather than the background as the field extends to the size of the image. Let me know if you can help as im just starting to use xcode!

Stack Overflow Asked by Benjo on November 15, 2021

1 Answers

One Answer

I think its because the image cause canvas to be much more bigger and you use edgesIgnoringSafearea(.all) Try to use on the image clipped() method and i think it will fix your issue with the padding. And also try to add foregroundColor to the test fields

Answered by Kobi on November 15, 2021

Add your own answers!

Related Questions

URL constructor appends ‘/’ at the end of the url

0  Asked on January 2, 2021 by ayusch-jain

         

Using the AWS EC2 Query API

1  Asked on January 2, 2021 by xliff

     

guidata not updating in MATLAB GUI

3  Asked on January 2, 2021 by matias-andina

       

Change long click delay

7  Asked on January 1, 2021 by fhucho

   

Dynamic parameters startWith Rxjs

1  Asked on January 1, 2021 by luden

     

Passing variables from a HTML form to PHP

2  Asked on January 1, 2021 by jim-r

     

trying to reverse the string with “_” fixed at point

3  Asked on December 31, 2020 by saurabh

   

Ask a Question

Get help from others!

© 2021 InsideDarkWeb.com. All rights reserved.