image in circle frame iOS Swift

cell.yourImageView.layer.cornerRadius = cell.yourImageView.frame.size.height / 2
cell.yourImageView.layer.masksToBounds = true

if you set dynamic constraint in image view according to device then write this code on viewDidAppear()