var roomNameLabel = makeLabel(CGRect(x: 0,y: 0,width: 200,height: 50), text: roomNameDisplay, size: 24, color: UIColor.gray)
roomNameLabel.layer.position = CGPoint(x:screenWidth – 120, y:75)
self.view.addSubview(roomNameLabel)
func makeLabel(_ frame: CGRect, text: String, size:CGFloat, color:UIColor) -> UILabel {
let label = UILabel()
label.frame = frame
label.backgroundColor = UIColor.white
label.text = text
label.font = UIFont.systemFont(ofSize: size)
label.textColor = color
label.textAlignment = NSTextAlignment.center
label.lineBreakMode = NSLineBreakMode.byWordWrapping
label.numberOfLines = 0
label.layer.borderWidth = 1.0
label.layer.borderColor = UIColor.black.cgColor
return label
}