WelcomeStepView.swift 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. import SwiftUI
  2. /// Welcome step view shown at the beginning of onboarding.
  3. struct WelcomeStepView: View {
  4. var body: some View {
  5. VStack(alignment: .center, spacing: 20) {
  6. PulsingLogoAnimation()
  7. Spacer(minLength: 10)
  8. Text("Hi there!")
  9. .font(.title2)
  10. .fontWeight(.bold)
  11. .multilineTextAlignment(.center)
  12. Text(
  13. "Welcome to Trio - an automated insulin delivery system for iOS based on the OpenAPS algorithm with adaptations."
  14. )
  15. .multilineTextAlignment(.center)
  16. .foregroundColor(.secondary)
  17. Text(
  18. "Trio is designed to help manage your diabetes efficiently. To get the most out of the app, we'll guide you through setting up some essential parameters."
  19. )
  20. .multilineTextAlignment(.center)
  21. .foregroundColor(.secondary)
  22. Text("Let's go through a few quick steps to ensure Trio works optimally for you.")
  23. .multilineTextAlignment(.center)
  24. .foregroundColor(.primary)
  25. .bold()
  26. }
  27. .padding()
  28. .frame(maxWidth: .infinity)
  29. }
  30. }