Feat: Working on pressure estimations feature

This commit is contained in:
2024-06-04 13:06:49 -04:00
parent 04c899da8e
commit 076488beb4
19 changed files with 1206 additions and 128 deletions

View File

@@ -1,6 +1,9 @@
import SwiftUI
public struct InfoButton: View {
@Environment(\.infoButtonStyle) private var infoButtonStyle
let action: () -> Void
public init(action: @escaping () -> Void) {
@@ -11,5 +14,22 @@ public struct InfoButton: View {
Button(action: action) {
Label("Info", systemImage: "info.circle")
}
.buttonStyle(infoButtonStyle)
}
}
public struct ResetButton: View {
@Environment(\.resetButtonStyle) private var resetButtonStyle
let action: () -> Void
public init(action: @escaping () -> Void) {
self.action = action
}
public var body: some View {
Button("Reset") { action() }
.buttonStyle(resetButtonStyle)
}
}