Guest User

Untitled

a guest
Sep 12th, 2024
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Swift 2.42 KB | None | 0 0
  1. struct FeedbackScreen: View {
  2.     @State private var email = ""
  3.     @Environment(\.dismiss) var dismiss
  4.     var body: some View {
  5.         Color("backgroundGuide")
  6.             .ignoresSafeArea(edges: [.bottom, .leading, .trailing])
  7.             .overlay {
  8.                 VStack{
  9.                     HStack
  10.                     {
  11.                         Button{
  12.                             dismiss()
  13.                         }label:{
  14.                             Image("Solidarrows")
  15.                                 .padding(.leading,UIScreen.main.bounds.width/20)
  16.                         }
  17.                         Spacer()
  18.                         Text("Feedback")
  19.                             .foregroundColor(.black)
  20.                             .font(.system(size: 17))
  21.                             .bold()
  22.                         Spacer()
  23.                     }
  24.                     .padding(.vertical)
  25.                     .background(.white)
  26.                     .clipShape(Rectangle())
  27.                     .frame(maxWidth: .infinity)
  28.                     TextField("Your email", text: $email)
  29.                         .frame(width: UIScreen.main.bounds.width-UIScreen.main.bounds.width/9)
  30.                         .padding(.vertical)
  31.                         .background(.white)
  32.                         .clipShape(RoundedRectangle(cornerRadius: 8))
  33.                         .padding(.top,UIScreen.main.bounds.height/23)
  34.                     TextField("Message", text: $email)
  35.                         .frame(maxWidth: UIScreen.main.bounds.width-UIScreen.main.bounds.width/9,minHeight: UIScreen.main.bounds.height/4)
  36.                         .padding(.vertical)
  37.                         .background(.white)
  38.                         .clipShape(RoundedRectangle(cornerRadius: 8))
  39.                         .padding(.top,6)
  40.                     Spacer()
  41.                     Button{
  42.                        
  43.                     }label: {
  44.                         Text("Send")
  45.                                 .font(.system(size: 16))
  46.                                 .foregroundColor(.white)
  47.                                 .frame(width: UIScreen.main.bounds.width-UIScreen.main.bounds.width/8)
  48.                                 .padding(.vertical)
  49.                                 .background(Color("guidePurple"))
  50.                                 .clipShape(RoundedRectangle(cornerRadius: 40))
  51.                     }
  52.                 }
  53.             }
  54.     }
  55. }
  56.  
Advertisement
Add Comment
Please, Sign In to add comment