StartupForceCloseWarningStepView.swift 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //
  2. // StartupForceCloseWarningStepView.swift
  3. // Trio
  4. //
  5. // Created by Cengiz Deniz on 27.04.25.
  6. //
  7. import SwiftUI
  8. struct StartupForceCloseWarningStepView: View {
  9. @Bindable var state: Onboarding.StateModel
  10. @Environment(\.openURL) var openURL
  11. var body: some View {
  12. VStack(alignment: .leading, spacing: 20) {
  13. Text("One last thing, before you begin...")
  14. .font(.title3)
  15. .bold()
  16. VStack(alignment: .leading, spacing: 10) {
  17. BulletPoint(
  18. String(localized: "You can pause at any time. If you feel like taking a break, do it and put the phone down!")
  19. )
  20. BulletPoint(
  21. String(
  22. localized: "All entries you made during Onboarding will be saved automatically when you complete the wizard."
  23. )
  24. )
  25. }
  26. .padding()
  27. .background(Color.chart.opacity(0.65))
  28. .cornerRadius(10)
  29. VStack(alignment: .leading, spacing: 10) {
  30. HStack(alignment: .top, spacing: 10) {
  31. Image(systemName: "exclamationmark.triangle.fill").foregroundStyle(Color.bgDarkBlue, Color.orange)
  32. .symbolRenderingMode(.palette)
  33. Text("Important").foregroundStyle(Color.orange)
  34. }.bold()
  35. Text("Just be aware: if you force quit the app before finishing onboarding, your progress will not be saved.")
  36. }
  37. .frame(maxWidth: .infinity)
  38. .padding()
  39. .background(Color.chart.opacity(0.65))
  40. .overlay(
  41. RoundedRectangle(cornerRadius: 10)
  42. .stroke(Color.orange, lineWidth: 2)
  43. )
  44. .cornerRadius(10)
  45. }
  46. }
  47. }