Mercurial > public > lazybear
view LazyBear/Sidebar.swift @ 471:f6bb6fde1ff7 default tip
Move to mercurial
author | Dennis C. M. <dennis@denniscm.com> |
---|---|
date | Tue, 03 Jun 2025 15:05:50 +0100 |
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() } }