Commit 914f5a1
committed
Guarantee that messageView is a subview of OSInAppMessageVC
There is swiftUI crash where addConstraintsForMessage can be called without messageView being a subview of OSInAppMessageViewController's view. This is likely happening because viewWillTransitionToSize is being called before setupInitialMessageUI. Neither the crash reporters nor OneSignal have been able to reproduce the crash, but it is safe to always add messageView as a subview if it is not already.1 parent 458eedb commit 914f5a1
1 file changed
+5
-0
lines changedLines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
283 | 288 | | |
284 | 289 | | |
285 | 290 | | |
| |||
0 commit comments