Add profile sharing
|
Before Width: | Height: | Size: 885 KiB After Width: | Height: | Size: 368 KiB |
|
Before Width: | Height: | Size: 3.3 MiB After Width: | Height: | Size: 2.0 MiB |
|
Before Width: | Height: | Size: 725 KiB After Width: | Height: | Size: 383 KiB |
|
Before Width: | Height: | Size: 2.7 MiB After Width: | Height: | Size: 2.2 MiB |
@@ -32,7 +32,7 @@ struct ContentView: View {
|
||||
.tag(page)
|
||||
.tabItem { page.label }
|
||||
}
|
||||
}.onChange(of: extensionProfile.status) { _ in
|
||||
}.onChangeCompat(of: extensionProfile.status) {
|
||||
if !selection.wrappedValue.visible(extensionProfile) {
|
||||
selection.wrappedValue = NavigationPage.dashboard
|
||||
}
|
||||
|
||||
@@ -25,13 +25,13 @@ struct MainView: View {
|
||||
ContentView()
|
||||
}
|
||||
}
|
||||
.onChange(of: scenePhase, perform: { newValue in
|
||||
.onChangeCompat(of: scenePhase) { newValue in
|
||||
if newValue == .active {
|
||||
Task.detached {
|
||||
await loadProfile()
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
.environment(\.selection, $selection)
|
||||
.environment(\.extensionProfile, $extensionProfile)
|
||||
.environment(\.logClient, $logClient)
|
||||
|
||||