I'm trying to create a floating button over tableViewController
, so far my code looks like this, but the Button sticks between two cells, so it's not floating...
let button = UIButton(frame: CGRect(x: 150, y: 550, width: 75, height: 75))
button.backgroundColor = .yellow
button.setTitle("To Jobs", for: .normal)
button.addTarget(self, action: #selector(buttonAction), for: .touchUpInside)
self.view.addSubview(button)