How do I programmatically set constraint with specific distance? – Ios swift
I have a button in my layout and I would like to specifically set it to SafeArea.bottom = button.bottom + 28. I am having errors when I try using btnAddRecord.translatesAutoresizingMaskIntoConstraints = false btnAddRecord.bottomAnchor.constraint.equalTo(self.view.safeAreaLayoutGuide.bottomAnchor, constant: 66).isActive = true I am getting…