Fix view layout when app returns to foreground

This commit is contained in:
Benoit Martins 2024-10-21 11:23:31 +02:00
parent 6b2a6573be
commit 1615f5caa9

View file

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