Image is tiny when displayed how can I make it half of the size of my phone?
import UIKit
import Kingfisher
class ViewController: UIViewController, UITableViewDelegate, UITableViewDataSource {
@IBOutlet var tableview: UITableView!
var arrayOfImages = ["https://firebasestorage.googleapis.com/v0/b/starlaxcy.appspot.com/o/myimage.png?alt=media&token=adcfa5ce-5bc3-4a65-bdcd-fb190f4c38d2"]
override func viewDidLoad() {
self.tableview.register(ImageCell.self, forCellReuseIdentifier: "ImageCell")
super.viewDidLoad()
}
func numberOfSections(in tableView: UITableView) -> Int {
return 1
}
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return arrayOfImages.count
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "ImageCell") as! ImageCell
let resource = ImageResource(downloadURL: URL(string: arrayOfImages[indexPath.row])!, cacheKey: arrayOfImages[indexPath.row])
cell.imageView?.kf.setImage(with: resource)
return cell
}
}