Mercurial > public > lazybear
diff LazyBear/Sidebar.swift @ 465:6953d83060a4
New design
author | Dennis Concepción Martín <dennisconcepcionmartin@gmail.com> |
---|---|
date | Sat, 17 Jul 2021 17:58:57 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LazyBear/Sidebar.swift Sat Jul 17 17:58:57 2021 +0100 @@ -0,0 +1,29 @@ +// +// 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() + } +}