Hey Brian,
Could you tell me how I can add an anchor dimension to the size init in your anchoring extension? I am trying to initialize a width by using the widthAnchor of the view, but it complains about "Overloads for 'init' exist with these partially matching parameter lists: (width: CGFloat, height: CGFloat)"
For example, I have some code with old-school constraints, and I am trying to translate them to your anchoring system. The multiplier is giving me a hard time, because I don't know where to put it to get the same result.
NSLayoutConstraint.activate([
labelView.leftAnchor.constraint(equalTo: self.leftAnchor, constant: 20),
labelView.widthAnchor.constraint(equalTo: self.widthAnchor),
detailLabelView.rightAnchor.constraint(equalTo: self.rightAnchor, constant: -15),
detailLabelView.widthAnchor.constraint(equalTo: labelView.widthAnchor, multiplier: 0.3)
])
labelView.anchorView(top: nil, leading: self.leadingAnchor, bottom: nil, trailing: self.trailingAnchor, padding: .init(top: 0, left: 20, bottom: 0, right: 0))
detailLabelView.anchorView(top: nil, leading: nil, bottom: nil, trailing: self.trailingAnchor, padding: .init(top: 0, left: 0, bottom: 0, right: 15), size: .init(width: labelView.widthAnchor / 3, height: 0))