view LazyBear/Sidebar.swift @ 470:2af5d172e024

update tags
author convert-repo
date Tue, 03 Jun 2025 14:03: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()
    }
}