view LazyBear/Views/Profile/ProfileView.swift @ 343:ab909fc9ce55

Implement batch requests HomeView
author Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com>
date Tue, 06 Apr 2021 11:04:21 +0200
parents a6c49f1409f3
children fde2b30c719e
line wrap: on
line source

//
//  ProfileView.swift
//  LazyBear
//
//  Created by Dennis Concepción Martín on 4/4/21.
//

import SwiftUI

struct ProfileView: View {
    @ObservedObject var profileData = ProfileData()
    
    var body: some View {
        NavigationView {
            List {
                ForEach(profileData.companies, id: \.self) { company in
                    Text("Hello company")
                }
            }
            .navigationTitle("My profile")
            .navigationBarTitleDisplayMode(.inline)
        }
    }
}

struct ProfileView_Previews: PreviewProvider {
    static var previews: some View {
        ProfileView()
    }
}