We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a75e49 commit a57fdb1Copy full SHA for a57fdb1
Modules/Sources/WordPressUI/Extensions/UIView+AutoLayout.swift
@@ -28,6 +28,12 @@ extension UIView {
28
}
29
translatesAutoresizingMaskIntoConstraints = false
30
31
+#if DEBUG
32
+ if let target = target as? UIView {
33
+ assert(!target.isDescendant(of: self), "The target view can't be a descendant for the view")
34
+ }
35
+#endif
36
+
37
var constraints: [NSLayoutConstraint] = []
38
39
func pin(_ edge: Edge.Set, _ closure: @autoclosure () -> NSLayoutConstraint) {
0 commit comments