extension UIImage { public convenience init(url: String) { let url = URL(string: url) do { let data = try Data(contentsOf: url!) self.init(data: data)! return } catch let err { print("Error : \(err.localizedDescription)") } self.init() } }
let image:UIImage = UIImage(url: "https://・・・")