Giter Site home page Giter Site logo

bauletto's People

Contributors

bguidolim avatar gianpispi 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

Watchers

 avatar  avatar  avatar  avatar

bauletto's Issues

Title not showed with Icon and if Icon is nil showed empty space

If icon is nil
let settings = BaulettoSettings(icon: nil, title: "Test title", dismissMode: .never) Bauletto.show(withSettings: settings)
IMG_6142

with icon
let settings = BaulettoSettings(icon: UIImage(systemName: "checkmark.seal.fill"), title: "Test title", dismissMode: .never) Bauletto.show(withSettings: settings)
IMG_6141

Ideas for improving

• Customizable duration fo the animation, 1 second feels unnecessary long for the slide animation
• Banner grows if image is big, I think the height of the banner should be locked to certain value so it looks more concise
• If text is too long, the banner just expands horizontally, sometimes even outside screen's bounds. Using something like MarqueeLabel or at least multi-line label would be great.
• The forceShowNext() method does not seem to work, it makes the current banner disappear and doesn't show the next one. For now I had to use a workaround shown below:

            Bauletto.hide()
            Bauletto.shared.removeBannersInQueue()
            DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
                Bauletto.show(withSettings: settings)
            }

• Adding tap gesture so touching the banner would perform some action
• Swiping the banner out of the screen, that's the thing I don't like about stock banners, they lack any interactivity
• There should be a way to figure out publicly if a banner is currently visible
• If nil is passed as icon, the image of heart appears, I think it should be empty in this case. For now I'm passing UIImage() instead of nil

I think this library is great and I love how it looks, but it could use some improvements. If I ever find some time I'm gonna try to submit a PR with some of those changes 😃

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.