Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed Oct 18, 2015
1 parent fe0ac4c commit e76c672
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Nuke/Source/UI/ImageLoadingView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ public extension ImageDisplayingView where Self: View {
animation.duration = ImageViewDefaultAnimationDuration
animation.fromValue = 0
animation.toValue = 1
layer?.addAnimation(animation, forKey: "opacity")
layer?.addAnimation(animation, forKey: "imageTransition")
} else {
let animation = CATransition()
animation.duration = ImageViewDefaultAnimationDuration
animation.type = kCATransitionFade
layer?.addAnimation(animation, forKey: "opacity")
layer?.addAnimation(animation, forKey: "imageTransition")
}
}
default: return
Expand All @@ -103,7 +103,7 @@ public extension ImageDisplayingView where Self: View {

// MARK: - Default ImageLoadingView Implementation

/** Default ImageLoadingView implementation for each UIView that implements ImageDisplayingView protocol.
/** Default ImageLoadingView implementation for each view that implements ImageDisplayingView protocol.
*/
public extension ImageLoadingView where Self: ImageDisplayingView {

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ let task = imageView.nk_setImageWithRequest(<#ImageRequest#>, options: <#ImageVi
Nuke makes it extremely easy to add full-featured image loading extensions to UI components
```swift
extension MKAnnotationView: ImageDisplayingView, ImageLoadingView {
// That's it, you get default implementation of all the methods in ImageLoadingView protocol
// That's it, you get default implementation of all methods in ImageLoadingView protocol
public var nk_image: UIImage? {
get { return self.image }
set { self.image = newValue }
Expand Down

0 comments on commit e76c672

Please sign in to comment.