I'm getting runtime error: Map+Coordinator.swift:256 Modifying state during view update, this will cause undefined behavior.
The warning pops up when I'm trying to change userTrackingMode on the button click. The code is pretty simple:
Button(action: {
userTrackingMode = .follow
}) {
Image(systemName: "location")
}
