view LazyBear/Views/Profile/ProfileView.swift @ 374:d402bfa367c2

Implementing ProfileView
author Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com>
date Sat, 17 Apr 2021 00:01:59 +0200
parents 80bfa88c6b0f
children f3cb5bdea8e5
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 profile = Profile()

    var body: some View {
        NavigationView {
            List {
                

            }
            .navigationTitle("My profile")
            .navigationBarTitleDisplayMode(.inline)
            .onAppear {
                profile.request("https://api.lazybear.app/profile/init/symbols/aapl")
            }
        }
    }
}

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