You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The SwiftMessages banner retains the parent view controller context, if any has been defined, while it is displayed.
This is easy to see with our media player view controller:
Play some content.
Toggle the show favorite state.
Close the player (with a pull down) while the notification is displayed.
The sound continues in the background for a few seconds, matching the display duration of the notification.
After having briefly looked at the SwiftMessages source code (nothing we do could lead to this behavior), version 7.0.0, it appears that view controllers should be weakly referenced. There is probably an issue with the implementation. We should fix it as a PR.
The text was updated successfully, but these errors were encountered:
defagos
added
maintenance
Code maintenance (issue and PR) - release notes section
bug
Issue to be fix (issue and PR) - release notes section
labels
Jun 6, 2019
The app fix does not work, the view controller is still retained during dispatch_after. This issue has already been reported to SwiftMessages and needs to be fixed there.
The SwiftMessages banner retains the parent view controller context, if any has been defined, while it is displayed.
This is easy to see with our media player view controller:
After having briefly looked at the SwiftMessages source code (nothing we do could lead to this behavior), version 7.0.0, it appears that view controllers should be weakly referenced. There is probably an issue with the implementation. We should fix it as a PR.
The text was updated successfully, but these errors were encountered: