I'm building a View for account creation, and have a number of text fields (first name, last name, email, etc.). It seems like the natural choice is to embed these TextField()
views into a Form,
but given that Form is built on UITableView
(as I understand it) it becomes challenging and requires some workarounds to add modifiers like .background()
and have them perform the way I want them to. If, instead of embedding them in a Form
, I just use a VStack,
there's no problem.
So my question is, is there any reason I should put up with the trouble and use Form
? Does it give me any added functionality? Is it considered bad or unclean code to not use Form
? From what I can tell, there don't seem to be any real benefits, right?