Comments (8)
@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.
@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.
@ninjaprox
Thanks for your work. I will check it out later.
from nvactivityindicatorview.
@ninjaprox For some reason, my indicator does not hide when i call self.activityIndicator.stopAnimating()
UPDATE:
Nevermind, lousy programming from yours truly π
from nvactivityindicatorview.
@otymartin: What could I do to improve it?
from nvactivityindicatorview.
@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.
@otymartin: Thanks! Perhaps I think that's good idea to add. I will try, PR is welcome though. π
from nvactivityindicatorview.
@ninjaprox I would but Im too new to swift & github (programming in general)π«π
from nvactivityindicatorview.
Related Issues (20)
- Multicolor Loader HOT 1
- M1 Mac - Could not find module 'NVActivityIndicatorView' for target 'x86_64-apple-ios-simulator'; found: arm64, arm64-apple-ios-simulator HOT 4
- MIgration guide to v5 HOT 1
- Swift language version not supported. HOT 1
- SPM not working correctly
- no such module
- how to set circleStrokeSpin stroke width HOT 1
- Not able to add the custom message in loader HOT 1
- Have support binary install using Carthage?
- How to add few colors for one indicator? HOT 1
- Module compiled with Swift 5.1 cannot be imported by the Swift 5.3.1 compiler
- Cannot find 'ActivityData' in scope
- Cannot compile with Xcode 13b3: 'shared' is unavailable HOT 1
- How to block user input?
- Support for Swift UI HOT 1
- Animation completion handler
- Stored properties cannot be marked potentially unavailable with '@available'
- [Feature Request] Layer shadow
- Add Privacy Manifest HOT 1
- Why NVActivityIndicatorAnimationBlank dose not existοΌ HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvactivityindicatorview.