설명 없음

Constants.swift 1.3KB

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // Constants.swift
  3. // Flowerdex
  4. //
  5. // Created by Víctor A. Hernández on 12/20/20.
  6. //
  7. import Foundation
  8. import SwiftUI
  9. struct Constants {
  10. struct UserDefaults {
  11. static let currentUser = "currentUser"
  12. static let isFirstTimeUser = "isFirstTimeUser"
  13. }
  14. struct Services {
  15. static let apiScheme = "https"
  16. static let apiHost = "ada.uprrp.edu"
  17. static let apiGetFlowersPath = "/~victor.hernandez17/flowerdex/listFlowers.php"
  18. static let apiLoginPath = "/~victor.hernandez17/flowerdex/login.php"
  19. static let apiRegistrationPath = "/~victor.hernandez17/flowerdex/signup.php"
  20. static let apiPutFavoritePath = "/~victor.hernandez17/flowerdex/putFavoriteFlower.php"
  21. static let apiRemoveFavoritePath = "/~victor.hernandez17/flowerdex/removeFavoriteFlower.php"
  22. static let apiPutFoundPath = "/~victor.hernandez17/flowerdex/putFoundFlower.php"
  23. static let apiRemoveFoundPath = "/~victor.hernandez17/flowerdex/removeFoundFlower.php"
  24. }
  25. struct Colors {
  26. static let lightGrayColor = Color(red: 239.0/255.0, green: 243.0/255.0, blue: 244.0/255.0, opacity: 1.0)
  27. static let darkGrayColor = Color(red: 41.0/255.0, green: 42.0/255.0, blue: 47.0/255.0, opacity: 1.0)
  28. static let blueGray = Color("Blue Gray")
  29. static let rausch = Color("Rausch")
  30. }
  31. }