alskipp / asprogresspopupview Goto Github PK
View Code? Open in Web Editor NEWA progress view showing percentage complete in a popup view
License: MIT License
A progress view showing percentage complete in a popup view
License: MIT License
Hi I loved this library and thanks for such a awesome work. I have implemented it into my project and it works like charm. But I have facing some strange issue.
I have used Tab on my project in which on my first tab I have used progressView into TableViewCell. When I run the project ProgressView display the same color that have been set by me it looks like below image.
But When I changed my tab (means from 1st Tab to 2nd Tab and then back to 1st Tab) then the progress colour changed it looked like below image
Don't know whats wrong with it.. Banging my head from last several hours. Thanks
In my particular case, I want the 0% and the 100% to be shown, is there a quick way to do that?
How to Resize Progress Bar? Especially height。
It would be nice if we could set the label ourselves.... this way the label could be either another number other than a % or the label could be an alt text for the progress bar
My project still needs to support iOS 7.x, so how can I use it or implement it on the system version prior to iOS 7?
Thanks in advance!
Sometime I feel the popup is too big and could use a smaller baloon.
I managed to get is smaller by reducing the font size, but still not enough.
I can see here that you have some constants like:
const float ARROW_LENGTH = 13.0;
const float MIN_POPUPVIEW_WIDTH = 36.0;
const float MIN_POPUPVIEW_HEIGHT = 27.0;
const float POPUPVIEW_WIDTH_PAD = 1.15;
const float POPUPVIEW_HEIGHT_PAD = 1.1;
maybe its a good idea to let the user set them...
Thanks for the great control .. what is the easiest way to adjust the progress bar height ? I tried to skim through the code but couldn't find a suitable place .. in IB, it is hard-coded to 2 pixels but the value is disabled for editing .. Thanks
`
import Foundation
import UIKit
import SwiftUI
import ASProgressPopUpView
struct CrowdProgressBar: UIViewRepresentable {
typealias UIViewType = UIView
var progress: Float = 1.40
func makeUIView(context: UIViewRepresentableContext<CrowdProgressBar>) -> UIView {
let view = UIView(frame: .zero)
let progressView = ASProgressPopUpView()
progressView.tintColor = UIColor.init(named: "colorAccent")
progressView.popUpViewCornerRadius = 16
progressView.setProgress(self.progress, animated: true)
progressView.show(animated: true)
progressView.translatesAutoresizingMaskIntoConstraints = false
view.addSubview(progressView)
NSLayoutConstraint.activate([
progressView.widthAnchor.constraint(equalTo: view.widthAnchor),
progressView.heightAnchor.constraint(equalTo: view.heightAnchor)
])
return view
}
func updateUIView(_ uiView: UIView, context: UIViewRepresentableContext<CrowdProgressBar>) {
}
}
`
Would set the tooltip to be displayed below the progress bar?
When I apply masksToBound or clipsToBound, the popup view dismisses. Please support this
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.