Skip to content

Animated custom ActivityIndicator inspired from css library SpinKit and much more. Written in Swift.

License

Notifications You must be signed in to change notification settings

carabina/DTIActivityIndicatorView-Swift

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DTIActivityIndicatorView

Animated custom ActivityIndicator inspired from css library SpinKit and much more... Written in Swift.

               

Installation

Support for swift project is not yet supported by cocoapod. I will create a podspec file later. DTIActivityIndicatorView will be available through CocoaPods. For instance, you will have to manually copy Classes/* in your project.

You can see work progress here: CocoaPods/CocoaPods#2272

This component require Xcode6-Beta6 to compile.

Usage

DTIActivityIndicatorView is subclass of UIView. So you can add the instance to some view. DTIActivityIndicatorView support storyBoards and new IBDesignable attributes

swift

let myActivityIndicatorView: DTIActivityIndicatorView = DTIActivityIndicatorView(frame: CGRect(x:0.0, y:0.0, width:80.0, height:80.0))
self.view.addSubview(myActivityIndicatorView)
myActivityIndicatorView.indicatorColor = UIColor.redColor()
myActivityIndicatorView.indicatorStyle = DTIIndicatorStyle.convInv(.chasingDots) 
myActivityIndicatorView.startActivity()

objc

DTIActivityIndicatorView *myActivityIndicatorView = [[DTIActivityIndicatorView alloc] initWithFrame:CGRectMake(0.0, 0.0, 80.0, 80.0)];
[self.view addSubview:myActivityIndicatorView];
myActivityIndicatorView.indicatorColor = [UIColor redColor];
myActivityIndicatorView.indicatorStyle = @"chasingDots";
[myActivityIndicatorView startActivity];

About

Animated custom ActivityIndicator inspired from css library SpinKit and much more. Written in Swift.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published