Latest 1.1
Homepage https://github.com/Tangdixi/DCExplosion
License MIT The DCExplosion use the MIT license
Platforms ios 8.0, requires ARC
Authors

DCExplosion

DemoGif

DCExplosion allow you to remove a view with explode animation. Written in Swift, using Protocol-Oriented Programming

How To Get Started

Installation

Drag the Source into your project.
Well, it is strongly recommended that you install via CocoaPods

Usage

  • Conform the protocol
    extension UIView:Explodable { }
  • Explode a view and remove it from superView
    yourView.explode(duration: 1)
  • Explode a view and remove it from superView using the specified direction
    imageView.explode(.Chaos, duration: 1)
  • Explode a view and remove it from superView using the specified direction and completion handler
    imageView.explode(.Chaos, duration: 1) {
    // do something here ...
    }
  • Explode a TableViewCell and delete it from UITableView using the specified direction and completion handler
    tableView.explodeRowAtIndexPath(indexPath, duration:1 ,direction: .Chaos) {
      dataSource.removeAtIndex(indexPath.row)
    }

Documentation

Xcode Quick Help Documentation Supported

Bug, Suggestions

Just open an issue ~

TODO

  • Remove a UICollectionCell with explode animation
  • More than explosion style

License

DCExplosion is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "DCExplosion",
    "version": "1.1",
    "summary": "Allow you remove a subview with explode animation",
    "homepage": "https://github.com/Tangdixi/DCExplosion",
    "license": {
        "type": "MIT",
        "text": "The DCExplosion use the MIT license"
    },
    "authors": {
        "Tangdixi": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/Tangdixi/DCExplosion.git",
        "tag": "1.1"
    },
    "source_files": "Source/*.swift",
    "requires_arc": true,
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This