The implicit idea of the Form is to provide semantic information about app structure that allows the use of screen readers, application of a set of styles, animations, font sizes etc that are HIG compliant, look nice and work well in a "form" context across Apple's various platforms. Which is a nice idea and could be a massive time saver, particularly if cross platform is needed.
Now the problem is currently (and I've not seen anything offlicial saying it should not be done and nor does it raise build or run time errors/warnings) as the 3rd party SwiftUI Companion app mentions "When using a custom control, results are undefined". Which very much agrees with my experience that it works brilliantly if using bog standard components and no custom animations. But try and embed any custom View and it will go spectacularly wrong at runtime in all sorts of weird and wonderful ways that are next to impossible to debug.
So, is it worth bothering with?
In my opinion, at the moment it really depends on the how easy (or not) it is to achieve the required data collection Form with totally standard control components vs the pain of implementing any custom cross platform support if Form is not used.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: