Post

Replies

Boosts

Views

Activity

Form Use Default padding in SwiftUI View.
Hey, I am trying to use Form for picker and when I use Form it take default padding in the view. is there any idea to resolve this so I can use complete view without padding. Here is my code struct PickerView: View {     var frameworks = ["UIKit", "Core Data", "CloudKit", "SwiftUI"]     @State private var selectedFrameworkIndex = 0     var body: some View { Form{         Picker(selection: $selectedFrameworkIndex, label: Text("Favorite Framework")) {             ForEach(0 ..< frameworks.count) {                 Text(self.frameworks[$0])             }         } &#9;&#9;&#9;}     } } Also I have one more issue when I come back after pick any item my picker stay highlighted. please Help in this. Thanks in advanced.
1
0
1.6k
Jan ’21