Formatted the boilerplated code in the app as well as the unit and UI tests targets.
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
import SwiftUI
|
||||
import SwiftData
|
||||
import SwiftUI
|
||||
|
||||
struct ContentView: View {
|
||||
@Environment(\.modelContext) private var modelContext
|
||||
@Query private var items: [Item]
|
||||
|
||||
@Environment(\.modelContext)
|
||||
private var modelContext
|
||||
|
||||
@Query
|
||||
private var items: [Item]
|
||||
|
||||
var body: some View {
|
||||
NavigationSplitView {
|
||||
@@ -17,15 +21,15 @@ struct ContentView: View {
|
||||
}
|
||||
.onDelete(perform: deleteItems)
|
||||
}
|
||||
#if os(macOS)
|
||||
#if os(macOS)
|
||||
.navigationSplitViewColumnWidth(min: 180, ideal: 200)
|
||||
#endif
|
||||
#endif
|
||||
.toolbar {
|
||||
#if os(iOS)
|
||||
#if os(iOS)
|
||||
ToolbarItem(placement: .navigationBarTrailing) {
|
||||
EditButton()
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
ToolbarItem {
|
||||
Button(action: addItem) {
|
||||
Label("Add Item", systemImage: "plus")
|
||||
|
||||
Reference in New Issue
Block a user