You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a problem with the sourceSize implementation.
What would be the best way to implement the display images from the url, knowing that each has a different size.
let imagesProvider = BasicProvider(
dataSource: dataSource,
viewSource: ClosureViewSource(viewGenerator: { (data, index) -> UIImageView in
let view = UIImageView(image: UIImage(named:"pic_picture_placeholder"))
view.layer.cornerRadius = 5
view.clipsToBounds = true
return view
}, viewUpdater: { (view: UIImageView, data: JSON, at: Int) in
// ASync call
DataStoreImage.shared.load(data["url"].string, view) { image in
...
view.image = image
// how reload cell with resize ?
})
},
sourceSize: ??
}
Any suggestions?
The text was updated successfully, but these errors were encountered:
Hi,
I have a problem with the sourceSize implementation.
What would be the best way to implement the display images from the url, knowing that each has a different size.
Any suggestions?
The text was updated successfully, but these errors were encountered: