When using this code in our app, we run into an error:
let value = UILayoutPriority.defaultHigh // Error: Type 'UILayoutPriority' has no member 'defaultHigh'.
which is super wired because according to the documentation, it is obviously there. And also, if we click through UILayoutPriority
and jump to its definition, we see it there as well.
UIKit > NSLayoutConstraint:
extension UILayoutPriority {
@available(iOS 6.0, *)
public static let required: UILayoutPriority
So why we cannot use UILayoutPriority.defaultHigh
?