-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathListView.swift
39 lines (35 loc) · 853 Bytes
/
ListView.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//
// ListView.swift
// Test-Navigation-Layout
//
// Created by Peter C. Allport on 11/25/22.
//
import SwiftUI
struct ListView: View {
var body: some View {
List {
Text("I'm another list")
}
.toolbar {
ToolbarItem {
Button {} label: {
Image(systemName: "plus")
.help("New Thing")
}
}
}
Text("3")
.frame(minWidth: 300, idealWidth: 300, maxWidth: .infinity, maxHeight: .infinity)
.toolbar {
Button {} label: {
Image(systemName: "trash")
.help("Delete Thing")
}
}
}
}
struct ListView_Previews: PreviewProvider {
static var previews: some View {
ListView()
}
}