0

I add Map to iOS Widget but it doesn't work.

 VStack(alignment: .leading, spacing: nil, content: {
  Text("Placeholder")
                    
  Map(coordinateRegion: $reg, showsUserLocation: true, userTrackingMode:$trackmode)
  Spacer()
})

enter image description here

pawello2222
  • 46,897
  • 22
  • 145
  • 209
  • Widget is now limited to show static only content. – Asperi Nov 13 '20 at 13:09
  • Does this answer your question? [Why do some views appear as a red no entry sign in widgets?](https://stackoverflow.com/questions/63135404/why-do-some-views-appear-as-a-red-no-entry-sign-in-widgets) – pawello2222 Nov 13 '20 at 14:56

1 Answers1

0

As an alternative you could try to display image snapshot for required map's area

A. Poltoratskyi
  • 410
  • 6
  • 13