Posts

Post not yet marked as solved
1 Replies
5.0k Views
I was practising with SwiftUI and using canvas preview. There's a button to Duplicate Preview (tor right corner above simulator) How to remove this Duplicated Preview? Tried selecting the preview and pressing Backspace, cmd+backspace and other possible combinations; choosing another device, relaunching etc MacOS, 10.15.6 Xcode 12.0 Solved: Need to delete ContentView() from struct ContentView_Previews: PreviewProvider {   static var previews: some View {     Group {       ContentView()     }   } } It was too low and didn't fit on the screen so I didn't notice it
Posted
by laechoppe.
Last updated
.