you may have to control the size yourself. Something like this:
var body: some View {
GeometryReader { geom in
...
.popover(isPresented: $showPersonEditor) {
PersonEditor(chosenPerson: $chosenPerson)
.environmentObject(document)
.frame(width: geom.size.width/2, height: geom.size.height/2)
}
...
}
...
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: