Change Xcode Preview from "Live" to "Selectable" permanently?

Preview layouts in Xcode 14 render the layout in live mode by default.

Can this default be changed to "Selectable" permanently? E.g. through an Xcode plist entry?

I know there is a manual option to switch to the Selectable option exists in the bottom left.

Replies

No there is not currently a way to do this, but please do file a bug because we'd love to hear more about your use case!

We have a similar use case. Previously, we were able to force the selectable mode using sizeThatFits layout and it worked great. Now, this is being ignored and all our previews start in live mode. But for inspecting the component and interactive work, we would like to force some previews to be in selectable mode. Either by respecting the sizeThatFits layout modifier (if present -> use selectable mode) or by introducing a new modifier such as previewMode(.live/.selectable).