So I tried to put a print statement while debugging in a SwiftUI View.
print(\"landmark: \\(landmark)\")
In the following body.
<
You can not print in body structure i.e. a structure which is some view type.For print you need to make function out of body structure and call it using button or something else.