Updated Swift example

This commit is contained in:
Bogdan Poplauschi 2017-01-27 21:32:08 +02:00 committed by GitHub
parent 8a9ae3db32
commit 93d259cbde
1 changed files with 2 additions and 0 deletions

View File

@ -81,6 +81,8 @@ Objective-C:
```swift ```swift
Swift: Swift:
@import SDWebImage
imageView.sd_setImage(with: URL(string: "http://www.domain.com/path/to/image.jpg"), placeholderImage: UIImage(named: "placeholder.png")) imageView.sd_setImage(with: URL(string: "http://www.domain.com/path/to/image.jpg"), placeholderImage: UIImage(named: "placeholder.png"))
``` ```