Hi,
Sorry to hear you are having problems getting selection working in previews. The feature currently only supports selecting individual elements if those elements are the result of code in the local file.
This means you should be able to click on a Text(…)
that is defined within the body
of a View
that is defined in the current file, but if your body
creates an instance of a View
defined in another file that contains that Text
then you won't be able to click to select it.
I am sure that's not what you were hoping for, but did my explanation make sense?
If you are finding that even with a simple file (like the one Hello World
one in the new-project template) that selection still doesn't work, then that sounds like a bug worthy of a feedback report. If you file one of those, it'd be good to include:
- a zip of the entire project you reproduced with (all source files, not just the
.xcodeproj
), and - a screen recording of how you are attempting to select things in the canvas