Mercurial > public > lazybear
comparison 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 |
comparison
equal
deleted
inserted
replaced
464:04e430ef254a | 465:6953d83060a4 |
---|---|
1 // | |
2 // Sidebar.swift | |
3 // lazybear | |
4 // | |
5 // Created by Dennis Concepción Martín on 17/07/2021. | |
6 // | |
7 | |
8 import SwiftUI | |
9 | |
10 struct Sidebar: View { | |
11 var body: some View { | |
12 List { | |
13 NavigationLink(destination: Watchlist()) { | |
14 Label("Watchlist", systemImage: "list.star") | |
15 } | |
16 NavigationLink(destination: Search()) { | |
17 Label("Search", systemImage: "magnifyingglass") | |
18 } | |
19 } | |
20 .navigationTitle("Categories") | |
21 .listStyle(SidebarListStyle()) | |
22 } | |
23 } | |
24 | |
25 struct Sidebar_Previews: PreviewProvider { | |
26 static var previews: some View { | |
27 Sidebar() | |
28 } | |
29 } |