view LazyBear/Sidebar.swift @ 467:bd6c73dab666

Change info files
author Dennis <dennis@denniscm.com>
date Fri, 11 Aug 2023 17:52:54 +0000
parents 6953d83060a4
children
line wrap: on
line source

//
//  Sidebar.swift
//  lazybear
//
//  Created by Dennis Concepción Martín on 17/07/2021.
//

import SwiftUI

struct Sidebar: View {
    var body: some View {
        List {
            NavigationLink(destination: Watchlist()) {
                Label("Watchlist", systemImage: "list.star")
            }
            NavigationLink(destination: Search()) {
                Label("Search", systemImage: "magnifyingglass")
            }
        }
        .navigationTitle("Categories")
        .listStyle(SidebarListStyle())
    }
}

struct Sidebar_Previews: PreviewProvider {
    static var previews: some View {
        Sidebar()
    }
}