I am trying to incorporate auto layout into my UITableViewHeaderFooterView subclass. The class is pretty basic, just two labels. This is the complete subclass:
I came upon this issue and the best solution I found is to set a default frame in the init. That frame will be changed anyway but it is useful for the constraints that would break on a 0,0,0,0 frame.
override init(reuseIdentifier: String?) {
super.init(reuseIdentifier: reuseIdentifier)
frame = CGRect(x: 0, y: 0, width: 100, height: 100)
//... setup constraints...
}