Post

Replies

Boosts

Views

Activity

Xcode Preview not showing a device, just the content
I am learning Swift right now and I see everywhere that people have devices as their previews but I cannot figure out how to show a device. Here is my code struct MeetingView_Previews: PreviewProvider {     static var previews: some View {         MeetingView()             .previewDevice("iPhone 11")     } } And here is an image of what I see. What do I do? (The Preview on Device button at the bottom of the canvas is disabled)
2
1
3.2k
Dec ’22