Giter VIP home page Giter VIP logo

uaprogressview's People

Contributors

barbosa avatar coneybeare avatar jamierevans avatar joshuaseltzer avatar paulmars avatar readmecritic avatar tyrone-sudeium avatar ykws 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

uaprogressview's Issues

[Swift] value of central labelview not updated in progressChangedBlock

Nice project!

I am integrating UAProgressView in my project written in swift. I tried to update the value of the current progress as follows:

override func awakeFromNib() {
    super.awakeFromNib()
    self.progressView.borderWidth = 2.0
    self.progressView.lineWidth = 8.0
    self.progressView.fillOnTouch = false
    self.progressView.animationDuration = 2.0

    self.textLabel = UILabel(frame: CGRectMake(0, 0, 60.0, 32.0))
    self.textLabel.font = UIFont(name: "HelveticaNeue-UltraLight", size: 22)
    self.textLabel.textAlignment = NSTextAlignment.Center
    self.textLabel.textColor = self.progressView.tintColor
    self.textLabel.backgroundColor = UIColor.clearColor()
    self.progressView.centralView = self.textLabel



    self.progressView.progressChangedBlock = { (progressView:UAProgressView!,  progress:Float) -> () in
        let lableview = progressView.centralView as! UILabel
        lableview.text = StringManager.float2str(progress*100)
        println("Current progress")
        println(progress)
    }  
} 

But the block is invoked only once as in the main code:

self.scoreshareview.setViewProgress(StringManager.str2float(score))

function setViewProgress:

func setViewProgress(score:Float){
    self.progressView.setProgress(score/100, animated: true)
}

I am new to iOS and not sure where the problem is.

Thanks for sharing!

Example: pod install Error and Warning

Example pod install has error and warning.

Error

[!] Could not automatically select an Xcode workspace. Specify one in your Podfile like so:

    workspace 'path/to/Workspace.xcworkspace'

Warning

[!] The abstract target Pods is not inherited by a concrete target, so the following dependencies won't make it into any targets in your project:
    - UAProgressView (from `..`)
All log

% pod install
Re-creating CocoaPods due to major version update.
Analyzing dependencies
Downloading dependencies
Installing UAProgressView (0.1.4)
Generating Pods project
Integrating client projects
[!] Could not automatically select an Xcode workspace. Specify one in your Podfile like so:
workspace 'path/to/Workspace.xcworkspace'

[!] The abstract target Pods is not inherited by a concrete target, so the following dependencies won't make it into any targets in your project:
- UAProgressView (from ..)

Alias

pod: aliased to arch -x86_64 pod

Spec

- M1 Mac
- ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [arm64-darwin20]
- CocoaPods 1.11.2
- Xcode 13.2.1

Please release a new version.

I've been using the HEAD parameter in my Podfile for getting the fix in e887eea for months to avoid flashing in setProgress:animated.

The last version was released on Jul 19. Please release a new version to include these fixes after Jul 19. Thanks.

How to change the borderColor ?

Hi , I want to change the bordercolor to whiteColor ,but it dosent work , and still show with tintcolor ! How can I solve it?

There is a warning.

  • (void)animateToProgress:(CGFloat)progress {

    ......

    animation.delegate = self; ( Assigning to 'id _Nullable' from incompatible type 'UAProgressView *const __strong')

    ......
    }

Tap and Hold Gesture (Long Press)

Would it be possible to expose a "tap and hold" gesture on this view? I would like to perform some actions when the touches are held for a specified amount of seconds.

I get an Apple Mach-O Linker Error

I'm trying to run your example from the xcodeproj file and I keep getting the following error:

ld: library not found for -lPods
clang: error: linker command failed with exit code 1 (use -v to see invocation)

tintColor和fillColor

fillColor设置无效。
如何让填充的圆环和背景圆环重叠在一起?

Compute progress using AVAudioRecorder currentTime property

How do we compute for the progress if we're gonna use AVAudioRecorder current time?

I'm after a 15 seconds recording time. Right now my code below is not allowing me to achieve this.

This is what I have now:

-(void)recording{
[self.progress setAnimationDuration:15.0];
self.timer = [NSTimer scheduledTimerWithTimeInterval:0.05
                                                  target:self
                                                selector:@selector(updateProgress)
                                                userInfo:nil
                                                 repeats:YES];
}

- (void)updateProgress{
    [self.progress setProgress:self.audioRecorder.currentTime];
}

Progress is flashing when setprogress:animated:YES

Hey sir!
Thanks for great class!
The problem is when I`m setting progress animated it goes great but when animation is finished the progressview is flashing (from last progress to current)
I think its in updating BezierPath

Can u help me pls?

TY
Grigory

Change colors

Hi,

Is any way where we can change de color of progress to be different to the static circle. I mean, the possibility to modify both colours like we do with border and linewidth.

thanks

Can't run example

$ pod install
Analyzing dependencies
Fetching podspec for `UAProgressView` from `..`
[!] Unable to satisfy the following requirements:

- `UAProgressView (from `..`)` required by `Podfile`

Intermediate state is missing like MRCircularProgressView

Hello,

I am trying to use this component as its more flexible than other referred as per my requirement.

Is there a possible to have an intermediate rotating circle while the transfer is yet to be started to download / upload.

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.