Skip to content

Fortyfox/DZImageView

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DZImageView

Version License Platform

Image View with content mode animations. Inspired by the Objective-C version VICMAImageView.

DZImageView Exmaple

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Create an Image View

let imageView = DZImageView(image: UIImage(named: "image.jpg")!, frame: CGRectMake(0, 0, 300, 300))
self.view.addSubview(imageView)

Animating

imageView.animationDuration = 0.3 // Optional, Default: 0.3
imageView.animateImageViewContentModeTo(.ScaleAspectFit) // Animate content mode
imageView.animateImageViewFrameTo(CGRectMake(0, 0, 300, 300)) // Animate frame
imageView.animateImageViewTo(.ScaleAspectFit, frame: CGRectMake(0, 0, 300, 300)) // Animate both content mode and frame

Requirements

  • iOS 8.0
  • Swift 2

Installation

DZImageView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "DZImageView"

To install DZImageView with Carthage add the following line to your cartfile

github "Fortyfox/DZImageView" ~> 0.1.1

License

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

About

Image View with content mode animations.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 52.2%
  • Swift 39.0%
  • Ruby 5.9%
  • Objective-C 2.9%