I have a table view controller with many table view sections. In each table view section, there is a table view cell. In each table view cell, there is a content view. In each content view, there is some text and an imageView. The image view is a round profile picture with border. It has always worked. This is the code for each image view:
self.imageView1.layer.cornerRadius = self.imageView1.frame.size.width / 2;
self.imageView1.clipsToBounds = true;
self.imageView1.layer.borderWidth = 2.0
self.imageView1.layer.borderColor = UIColor.white.cgColor
I just migrated to Swift 5, and the circles are now square. No coding changes have been made whatsoever. In fact, when I migrated, the changes that it showed that it would make shouldn't have interfered at all with the roundness of the image.
I am at an utter loss as to how to correct it.