ProfileHost.swift


  1. import SwiftUI
  2. struct ProfileHost: View {
  3. @State private var draftProfile = Profile.default
  4. var body: some View {
  5. VStack(alignment: .leading, spacing: 20) {
  6. ProfileSummary(profile: draftProfile)
  7. }
  8. .padding()
  9. }
  10. }
  11. struct ProfileHost_Previews: PreviewProvider {
  12. static var previews: some View {
  13. ProfileHost()
  14. .environmentObject(ModelData())
  15. }
  16. }