I have a simple view attached to the bottom of view controller:
let view = UIView()
view.backgroundColor = .gray
view.translatesAutoresizingMaskIntoConstraints = false
let viewBottomPositionConstraint = view.bottomAnchor.constraint(equalTo: self.view.safeAreaLayoutGuide.bottomAnchor)
NSLayoutConstraint.activate([
view.heightAnchor.constraint(equalToConstant: 100),
view.leftAnchor.constraint(equalTo: self.view.leftAnchor),
view.rightAnchor.constraint(equalTo: self.view.rightAnchor),
viewBottomPositionConstraint
])
I need that view to go up and down when keyboard appears/disappears following keyboard animation