Formatted the boilerplated code in the app as well as the unit and UI tests targets.

This commit is contained in:
2026-02-08 21:10:52 +01:00
parent d97b49a1bd
commit f587893ba6
5 changed files with 19 additions and 14 deletions
+11 -7
View File
@@ -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")