AlertToast
AlertToast copied to clipboard
Not usable as global modifier when sheet is presented
I tried this in my project, where Im using some views in sheets. I need some global error handling, so I used this on top level view. It cant work, because this implementation uses simple overlay over content view. Unfortunately I didnt look into the source codes before trying to integrate it... 😞
@mkubista thanks for the heads up. I too would like something to use for a global view. Did you find anything that does work?
You can use it inside a sheet, you just need to put the modifier inside the sheet too
My fork should fix your issue.
@ImTheSquid I would like this functionality but your fork gives me the error:
Type 'any View' cannot conform to 'View'
Can you give me a full compiler backtrace so I can see where that's happening? Also make sure you pull the repo again and tell me what version of Swift and iOS you're using.
Can you give me a full compiler backtrace so I can see where that's happening? Also make sure you pull the repo again and tell me what version of Swift and iOS you're using.
@ImTheSquid I definitely had the latest master. iOS 16.2, Xcode 14.2 (Swift 5.7 I think?). I don't know the compiler backtrace as I ended up switching back to elai950/AlertToast and just adding it to the sheet view as suggested by @svenoaks , and it worked.
any fix on this? The loading animation appears under the sheets