Commit f8c27943 authored by huanglu's avatar huanglu

update

parent 46edd505
Pod::Spec.new do |s| Pod::Spec.new do |s|
s.name = 'GeekImageEditor' s.name = 'GeekImageEditor'
s.version = '0.0.2' s.version = '1.0'
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,8 +128,8 @@ public final class PhotoEditorViewController: UIViewController { ...@@ -128,8 +128,8 @@ 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) { (result) in self.imageView.kf.setImage(with: imgUrl, placeholder: nil, options: nil, progressBlock: nil) { (res) in
switch result { switch res {
case .success(let success): case .success(let success):
self.setImageView(image: success.image) self.setImageView(image: success.image)
default: default:
......
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