Proper 1.0 release for iOS. Pending App Store submission.
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
import SwiftUI
|
||||
import UniformTypeIdentifiers
|
||||
|
||||
@@ -17,6 +16,8 @@ struct SettingsView: View {
|
||||
activeSheet: $activeSheet
|
||||
)
|
||||
|
||||
LiveActivitySection()
|
||||
|
||||
ImageStorageSection()
|
||||
|
||||
AppInfoSection()
|
||||
@@ -508,6 +509,44 @@ struct ImportDataView: View {
|
||||
}
|
||||
}
|
||||
|
||||
struct LiveActivitySection: View {
|
||||
@EnvironmentObject var dataManager: ClimbingDataManager
|
||||
@State private var showingDebugView = false
|
||||
|
||||
var body: some View {
|
||||
Section("Live Activities") {
|
||||
NavigationLink(destination: LiveActivityDebugView()) {
|
||||
HStack {
|
||||
Image(systemName: "bell.badge")
|
||||
.foregroundColor(.purple)
|
||||
Text("Debug Live Activities")
|
||||
Spacer()
|
||||
}
|
||||
}
|
||||
.foregroundColor(.primary)
|
||||
|
||||
Button(action: {
|
||||
dataManager.testLiveActivity()
|
||||
}) {
|
||||
HStack {
|
||||
Image(systemName: "play.circle")
|
||||
.foregroundColor(.blue)
|
||||
Text("Quick Test")
|
||||
Spacer()
|
||||
}
|
||||
}
|
||||
.foregroundColor(.primary)
|
||||
.disabled(dataManager.gyms.isEmpty)
|
||||
|
||||
if dataManager.gyms.isEmpty {
|
||||
Text("Add a gym first to test Live Activities")
|
||||
.font(.caption)
|
||||
.foregroundColor(.secondary)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#Preview {
|
||||
SettingsView()
|
||||
.environmentObject(ClimbingDataManager.preview)
|
||||
|
||||
Reference in New Issue
Block a user