I've encountered a challenge in replicating the alpha resetting issue within a basic app setup. The particular screen where this issue arises is intricate, and I'm constrained by time to simplify it to the root cause.
However, a similar problem is evident with NSLayoutConstraint. In my storyboard, there's a button. Initially, it's vertically centered using the constraint buttonCenterConstraintInitiallyInstalledInStoryBoard. Additionally, there's another constraint, topConstraintInitiallyUnistalledInStoryBoard, which positions the button at the top but is uninstalled by default.
On pressing the button, I switch between these constraints, animating the button's movement from the center to the top and vice versa. This works as expected. But, if I activate the initially uninstalled constraint by pressing the button and then either toggle between light and dark modes or rotate the device, the topConstraintInitiallyUnistalledInStoryBoard reverts to its uninstalled state, reactivating the other constraint. Fortunately, this behavior is consistent on both a physical device and an iOS 16.4 simulator. I'm open to sharing the code if there's any interest.