Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 1011 Bytes

README.md

File metadata and controls

21 lines (16 loc) · 1011 Bytes

AYProgressBar

customized NSProgressIndicator. Basically its just two-colored line with active color and passive color.

I made it to show a song progress in my player.

Alt progress bar screenshot

#How to use


    AYProgressIndicator *progressView = [[AYProgressIndicator alloc] initWithFrame:NSMakeRect(10, 10, 210, 2)
                                                                     progressColor:[NSColor redColor]
                                                                        emptyColor:[NSColor lightGrayColor]
                                                                          minValue:0
                                                                          maxValue:100
                                                                      currentValue:14];
    [self.view addSubview:progressView];

You can configure the size by setting proper frame size.