Latest 1.0.1
Homepage https://github.com/itchingpixels/UIView-Motion
License MIT
Platforms ios 6.0
Dependencies pop
Authors

UIView helper category to add animation on addSubview & removeFromSuperView with one method. Uses facebook pop. Doesn’t play well with AutoLayout.

Easy peasy.

[self.view addSubview:self.viewToAdd withAnimationType:MotionTypeSlideInFromLeft];

[self.view removeFromSuperViewWithAnimationType:MotionTypeSlideOutToLeft];

Optional delay, completionBlock parameters are also available.

Disclaimer:
When using delay, the UIView won’t be added/removed to/from the view hierarchy until the specified time.
Don’t even try to make it work with AutoLayout :)

Animation types

  • FadeIn
  • FadeOut

  • SlideInFromLeft
  • SlideInFromRight
  • SlideInFromTop
  • SlideInFromBottom
  • SlideInFromBottomAndFadeIn

  • SlideOutToLeft
  • SlideOutToRight
  • SlideOutToTop
  • SlideOutToBottom

  • ZoomIn
  • ZoomOut

Contributing

Pull requests are welcome!

License

UIView+Motion is released under a MIT License. See LICENSE file for details.

Latest podspec

{
    "name": "UIView-Motion",
    "version": "1.0.1",
    "summary": "addSubview and removeFromSuperview with animations! (not with autolayout though)",
    "description": "                   UIView helper category to add animation on addSubview & removeFromSuperView with one method. Uses facebook pop. Doesn't play well with AutoLayout.n",
    "homepage": "https://github.com/itchingpixels/UIView-Motion",
    "license": {
        "type": "MIT",
        "file": "LICENCE"
    },
    "authors": {
        "Mark Szulyovszky": "[email protected]"
    },
    "social_media_url": "http://twitter.com/itchingpixels",
    "source": {
        "git": "https://github.com/itchingpixels/UIView-Motion.git",
        "tag": "1.0.1"
    },
    "source_files": "Class/*",
    "exclude_files": "Example/*",
    "dependencies": {
        "pop": [
            "~> 1.0"
        ]
    },
    "platforms": {
        "ios": "6.0"
    }
}

Pin It on Pinterest

Share This