[AltStore] Updates ToastView appearance

This commit is contained in:
Riley Testut
2019-07-24 12:51:23 -07:00
parent 94a5b14577
commit 14b3dfa11c
4 changed files with 7 additions and 11 deletions

View File

@@ -361,7 +361,7 @@ extension AppViewController
{
DispatchQueue.main.async {
let toastView = ToastView(text: error.localizedDescription, detailText: nil)
toastView.show(in: self.navigationController!.view, duration: 2)
toastView.show(in: self.navigationController?.view ?? self.view, duration: 2)
}
}