Skip to content

Map+Coordinator.swift:256 Modifying state during view update, this will cause undefined behavior. #36

@iakov-kaiumov

Description

@iakov-kaiumov

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")
}

Снимок экрана 2023-03-05 в 23 13 23

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions