Ei kuvausta

ContentView.swift 489B

123456789101112131415161718192021222324
  1. //
  2. // ContentView.swift
  3. // Comedores Sociales
  4. //
  5. // Created by Hector Carrion on 10/24/20.
  6. //
  7. import SwiftUI
  8. struct ContentView: View {
  9. @StateObject var lvm = LoginViewModel()
  10. @StateObject var rvm = RegisterViewModel()
  11. var body: some View {
  12. if lvm.response ?? false || rvm.response ?? false {
  13. SearchContainer()
  14. } else {
  15. LoginView()
  16. .environmentObject(lvm)
  17. .environmentObject(rvm)
  18. }
  19. }
  20. }