Changing SwiftUI Popover Height

Viewed 513

Is it possible to change the height of popover on SwiftUI on iPad? Setting the height of the frame inside popover view doesn't work.

My code is as shown:

struct Test: View {
    var body: some View {
        List {
            Button(action: {
                // Enable popOver
            }) {
                Text("click me")
            }
        }.popover(isPresented: $showingPopOver, arrowEdge: .top) {
            VStack(spacing: 20) {
                Text("Change Picture")
                    .onTapGesture {
                        self.showingPopOver.toggle()
                        self.imagePickerViewModel.isPresented.toggle()
                    }

                Text("Remove")
            }.frame(height: 200).background(Color.red)
        }
    }
}
0 Answers
Related