'previewing two different SwiftUI views in two swift file at once in Xcode canvas [closed]
When I build SwiftUI views in separate files, I need to make changes in one of them looking at other one.Since canvas takes time to render vies from the scratch , its hard to move those views and look at them time to time. So that it is very helpful if I can have those two views in the canvas separately . is there a way to do this ?
Solution 1:[1]
I believe what you're looking to do is "pin" your canvas - on the bottom left corner of your preview pane, you should see a pin icon. Click on that, and then move to another view and preview that as well. You should see both previews stacked on top of each other.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | akim |
