Giter VIP home page Giter VIP logo

notificationtoast's People

Contributors

isapozhnik avatar jeehut avatar marcheimendinger avatar philippeweidmann avatar vincentneo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

notificationtoast's Issues

Toast attaches to top view controller.

The view attaches to the top view controller which is obviously by design. But this means that if another controller comes into view modally, the view attaches to the top of it and can be pulled down with it. This isn't the behaviour of the native toast.
Sorry have no idea for a PR myself but I thought I'd mention it. Thanks!

Cocoapods

could you please release like pod?

License?

I think you might want to add a license to this project, such as the popular MIT License.

ToastViewWindow not show

In my application,
I have the function to sign in with apple.
Firstly, I touch up inside the sign in with apple button, the sign in form will show. Show ToastView after the sign in process is completed but nothing happens (the toast view not show).

private func singinError(message: String) {
        let toast = ToastView(title: message)
        toast.show(haptic: .error)
    }

I try to debug in the init func of ToastViewWindow

let scene = UIApplication.shared.connectedScenes.first(where: { $0.activationState == .foregroundActive }) as? UIWindowScene

At this time, activationState is foregroundInactive.
My opinion, we should add filter condition. It looks like:

let scene = UIApplication.shared.connectedScenes.first(where: { $0.activationState == .foregroundActive || $0.activationState == .foregroundInactive }) as? UIWindowScene

I will be happy if it is fixed.

Thanks!

Could the class handle the main thread itself ?

Thanks for a really useful tool , just a comment, I think it would be cool if the class handled the main thread part of things.
The show and the hide functions are easy to wrap in main async code but not the initializer. Is this possible ? thanks

The lib is crashing

Screen Shot 2021-10-20 at 11 49 48 AM

I have no clear steps for this, but it happened already twice on my side.
Will try to track it down and see if i can find some steps for this one

Multiline subtitle text?

I just faced a request where I'd need to show subtitle in two lines, is it possible to do it now or we should create a PR for it?

Introduce flag if toast is displayed already

I think we should maybe introduce a flag if toast is already displayed to avoid stacking plenty of them in a situation when toast is getting displayed on some button type to avoid stacking of it.

Let me know what you think about the idea, I can maybe push this change if you agree.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.