Form{} is specifically designed for user input scenarios like settings pages, data entry, and forms. It’s optimized for displaying text fields, toggles, pickers, and other input controls. The layout automatically adjusts to handle these controls in a user-friendly way.
Simply put your button outside the Form{}.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: