41 lines
1.1 KiB
Swift
41 lines
1.1 KiB
Swift
import SwiftUI
|
|
|
|
/// Entry point for the migration demos, grouped by strategy.
|
|
struct MigrationHubView: View {
|
|
var body: some View {
|
|
Form {
|
|
Section("Migration Demos") {
|
|
NavigationLink("Simple Legacy Migration") {
|
|
MigrationDemo()
|
|
}
|
|
|
|
NavigationLink("Transforming Migration") {
|
|
TransformingMigrationDemo()
|
|
}
|
|
|
|
NavigationLink("Aggregating Migration") {
|
|
AggregatingMigrationDemo()
|
|
}
|
|
|
|
NavigationLink("Conditional Migration") {
|
|
ConditionalMigrationDemo()
|
|
}
|
|
}
|
|
|
|
Section("Overview") {
|
|
Text("Explore migrations that move legacy values into modern storage with transformation, aggregation, and conditional rules.")
|
|
.font(.caption)
|
|
.foregroundStyle(Color.Text.secondary)
|
|
}
|
|
}
|
|
.navigationTitle("Migrations")
|
|
.navigationBarTitleDisplayMode(.inline)
|
|
}
|
|
}
|
|
|
|
#Preview {
|
|
NavigationStack {
|
|
MigrationHubView()
|
|
}
|
|
}
|