Post

Replies

Boosts

Views

Activity

App appears on two devices on preview
When I preview my app in Xcode, it shows up on two different preview simulators/devices. Then, when I actually run it it appears glitched out. Here is my code: import SwiftUI struct ContentView: View {   @State var showDetailsScience = false   @State var showDetailsMath = false   @State var showDetailsELA = false   @State var showDeatailsSocial = false   var body: some View {     VStack {         Text("Core Subjects")           .font(.largeTitle)           .fontWeight(.bold)           .position(x: 120 , y: 30)           .padding(0)     }   NavigationView {     VStack {         Spacer ()       NavigationLink(       destination: ScienceView(),         label: {          Image ("Science")           .cornerRadius(25)           .position(x: 290, y: 18)         }           )       NavigationLink(       destination: MathView(),         label: {         Image ("Math")           .cornerRadius(25)           .position(x: 100, y: -145)           }         )       NavigationLink(       destination: ELAView(),         label: {           Image ("ELA")             .cornerRadius(25)             .position(x: 100, y: -100)           }         )       NavigationLink(       destination: SocialStudiesView(),         label: {         Image ("SocialStudies")           .cornerRadius(25)           .position(x: 290, y: -265)                       }         )       }     }   } } struct ContentView_Previews: PreviewProvider {   static var previews: some View {     ContentView()         } } Here are some images: If anyone knows how to fix this please let me know, as I am very desperate
2
0
2.4k
Jun ’21