If the on-screen keyboard on my iPad is used, the underlying map is corrupted and no longer shows layers.
I was able to re-produce in the Examples project by adding a textfield to the PopupElementHeader.swift file to get the keyboard to display.
EDIT: The map is still there, but is panned/zoomed to Antartica
struct PopupElementHeader: View {
let title: String
let description: String
@State var text = "Hello" // DUANE P: ADDED State var
var body: some View {
VStack(alignment: .leading) {
// DUANE P: ADDED TEXT FIELD SO KEYBOARD DISPLAYS
TextField("Work Needed", text: $text)
.frame(maxWidth:.infinity, alignment: .leading).padding(5).background(Color(UIColor.systemBackground)).border(.gray).cornerRadius(7)
// Text views with empty text still take up some vertical space in
// a view, so conditionally check for an empty title and description.
if !title.isEmpty {
Text(title)
.multilineTextAlignment(.leading)
.font(.title2)
.foregroundColor(.primary)
}
if !description.isEmpty {
Text(description)
.multilineTextAlignment(.leading)
.font(.subheadline)
.foregroundColor(.secondary)
}
}
.padding([.bottom], 4)
}
}