Skip to content

Instantly share code, notes, and snippets.

Last active Dec 21, 2019
What would you like to do?
// avoid ambiguous position by using wrapper
let wrapper = UIView()
let view = HeaderView()
view.translatesAutoresizingMaskIntoConstraints = false
view.leftAnchor.constraint(equalTo: wrapper.leftAnchor),
view.rightAnchor.constraint(equalTo: wrapper.rightAnchor),
view.topAnchor.constraint(equalTo: wrapper.topAnchor),
view.bottomAnchor.constraint(equalTo: wrapper.bottomAnchor),
tableView.tableFooterView = wrapper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment