Fix view layout when app returns to foreground

This commit is contained in:
Benoit Martins 2024-10-21 11:23:31 +02:00
parent 79dc832684
commit b523315e82

View file

@ -1231,6 +1231,7 @@ struct ContentView: View {
}
.onChange(of: scenePhase) { newPhase in
CoreContext.shared.enteredForeground = newPhase == .active
orientation = UIDevice.current.orientation
}
}