|
|
|
|
@ -86,7 +86,6 @@ struct ContentView<T : AbstractTimer>: View { |
|
|
|
|
|
|
|
|
|
var body: some View { |
|
|
|
|
|
|
|
|
|
NavigationStack { |
|
|
|
|
GeometryReader { reader in |
|
|
|
|
let width: CGFloat = reader.size.width / 2 - 15.0 |
|
|
|
|
|
|
|
|
|
@ -136,18 +135,6 @@ struct ContentView<T : AbstractTimer>: View { |
|
|
|
|
self._reorderSpots(from: from, to: to) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ReorderableForEach(items: timersArray) { timer in |
|
|
|
|
// |
|
|
|
|
// DialView(timer: timer, isEditingBinding: self.$isEditing, frameSize: width) |
|
|
|
|
// .environment(\.managedObjectContext, viewContext) |
|
|
|
|
// .environmentObject(Conductor.maestro) |
|
|
|
|
// .environmentObject(boringContext) |
|
|
|
|
// |
|
|
|
|
// } moveAction: { from, to in |
|
|
|
|
// self._reorder(from: from, to: to) |
|
|
|
|
// } |
|
|
|
|
} |
|
|
|
|
}.padding(.horizontal, itemSpacing) |
|
|
|
|
|
|
|
|
|
@ -161,7 +148,7 @@ struct ContentView<T : AbstractTimer>: View { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// .navigationTitle("Yeah!") |
|
|
|
|
.navigationTitle("Home") |
|
|
|
|
.alert(boringContext.error?.localizedDescription ?? "missing error", isPresented: $boringContext.showDefaultAlert) { |
|
|
|
|
Button("OK", role: .cancel) { } |
|
|
|
|
} |
|
|
|
|
@ -199,7 +186,6 @@ struct ContentView<T : AbstractTimer>: View { |
|
|
|
|
.onOpenURL { url in |
|
|
|
|
self._performActionIfPossible(url: url) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|