Commit 78be5a85 authored by huanglu's avatar huanglu

update

parent f8c27943
Pod::Spec.new do |s| Pod::Spec.new do |s|
s.name = 'GeekImageEditor' s.name = 'GeekImageEditor'
s.version = '1.0' s.version = '1.1'
s.summary = 'Image Editor supports drawing, writing text and adding stickers and emojis' s.summary = 'Image Editor supports drawing, writing text and adding stickers and emojis'
s.description = <<-DESC s.description = <<-DESC
......
...@@ -128,14 +128,14 @@ public final class PhotoEditorViewController: UIViewController { ...@@ -128,14 +128,14 @@ public final class PhotoEditorViewController: UIViewController {
func loadImageForPath(path: String) { func loadImageForPath(path: String) {
if let imgUrl = URL(string: path) { if let imgUrl = URL(string: path) {
self.imageView.kf.setImage(with: imgUrl, placeholder: nil, options: nil, progressBlock: nil) { (res) in self.imageView.kf.setImage(with: imgUrl, placeholder: nil, options: nil, progressBlock: nil, completionHandler: { (res) in
switch res { switch res {
case .success(let success): case .success(let success):
self.setImageView(image: success.image) self.setImageView(image: success.image)
default: default:
break break
} }
} })
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment