I am trying to create an image view for a watch application, I am trying to create programmatically, but the code used in the classic view controller does not work.
let imageName = "yourImage.png" let image = UIImage(named: imageName) let imageView = UIImageView(image: image!) imageView.frame = CGRect(x: 0, y: 0, width: 50, height: 50) view.addSubview(imageView)
How can I do the same for dialing a watch? thanks
source share