Giter Club home page Giter Club logo

Comments (8)

ninjaprox avatar ninjaprox commented on May 18, 2024

@whisper-bye: Just checked the code

public func stopAnimation() {
    self.layer.sublayers = nil
    self.animating = false
    if hidesWhenStopped && !hidden {
        hidden = true
    }
}

When stopAnimation() is called, it removes all sublayers. That is why the view looks like hidden regardless hidesWhenStopped. Anyway, I will refine this method and behavior, but PR is always welcome.

from nvactivityindicatorview.

ninjaprox avatar ninjaprox commented on May 18, 2024

@whisper-bye: I've decided to remove hidesWhenStopped in next major release (3.x). The expected behavior now should be that before starting and stopping animating, nothing should be appeared but its background color. Also considering to hide the view itself before starting and after stopping.

from nvactivityindicatorview.

whisper-bye avatar whisper-bye commented on May 18, 2024

@ninjaprox
Thanks for your work. I will check it out later.

from nvactivityindicatorview.

otymartin avatar otymartin commented on May 18, 2024

@ninjaprox For some reason, my indicator does not hide when i call self.activityIndicator.stopAnimating()

UPDATE:
Nevermind, lousy programming from yours truly πŸ˜…

from nvactivityindicatorview.

ninjaprox avatar ninjaprox commented on May 18, 2024

@otymartin: What could I do to improve it?

from nvactivityindicatorview.

otymartin avatar otymartin commented on May 18, 2024

@ninjaprox it's perfect actually, I haven't had any problems with it at all. One usecase I'm going to attempt (It may be outside the focus scope) is at startAnimating -> I would like to automatically blur the view below. I use this library for video so while buffering, it makes for a nice effect.

Thanks alot for the library btw πŸ’―

from nvactivityindicatorview.

ninjaprox avatar ninjaprox commented on May 18, 2024

@otymartin: Thanks! Perhaps I think that's good idea to add. I will try, PR is welcome though. πŸ˜„

from nvactivityindicatorview.

otymartin avatar otymartin commented on May 18, 2024

@ninjaprox I would but Im too new to swift & github (programming in general)πŸ˜«πŸ™ˆ

from nvactivityindicatorview.

Related Issues (20)

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.