Code Monkey home page Code Monkey logo

asprogresspopupview's People

Contributors

alskipp avatar cytryn 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  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

asprogresspopupview's Issues

ProgressView color change

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.

screen shot 2015-09-11 at 3 55 19 pm

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

screen shot 2015-09-11 at 3 55 47 pm

Don't know whats wrong with it.. Banging my head from last several hours. Thanks

Set the label property

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

Set the view bounds

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...

Progress Bar Height

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

I want to use return NSStrings for any progress values using SwiftUI but i need help. Can someone complete the following implementation ?

`
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>) {
    
}

}
`

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.