Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use backgroundColor ivar instead of property access in traitCollectio…
…nDidChange (#1678) traitCollectionDidChange isn't necessarily called on Main, but our self.backgroundColor property access must be done on main once the view is loaded. I originally opted to use self.backgroundColor rather than _backgroundColor in #1674, but I think we should use the ivar here. This could get out-of-sync if someone modified the UIView's background color instead of updating the node, but I think that's unlikely, so we should be safe to use the ivar here.
- Loading branch information