daily pastebin goal
24%
SHARE
TWEET

Untitled

a guest Mar 24th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import Foundation
  2. import UIKit
  3.  
  4. public extension UIImageView {
  5.    
  6.     func setImage(named: String) {
  7.         DispatchQueue.global().async {
  8.             let image = UIImage(named: named)
  9.             DispatchQueue.main.async {
  10.                 self.image = image
  11.             }
  12.         }
  13.     }
  14.    
  15. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top