Toaster
Toaster copied to clipboard
How to show toast on top instead of bottom of screen.
This is not yet supported.
I think you can use something like this:
let marginTop:CGFloat = 80.0
ToastView.appearance().bottomOffsetPortrait = max(UIScreen.main.bounds.width, UIScreen.main.bounds.height) - marginTop
ToastView.appearance().bottomOffsetLandscape = min(UIScreen.main.bounds.width, UIScreen.main.bounds.height) - marginTop
Thank you @Pedroalexandrelopes. Where would I put this code exactly?
You use this on application or ViewController startup
I created this PR to resolve this issue, please take a look https://github.com/devxoul/Toaster/pull/221