mirror of https://github.com/SnapKit/SnapKit
Fix edges to edges for macOS
This commit is contained in:
parent
bea480a8d1
commit
46c02e3cc9
|
@ -118,7 +118,9 @@ public class Constraint {
|
|||
layoutToAttribute = layoutFromAttribute
|
||||
}
|
||||
#else
|
||||
if layoutToAttributes.count > 0 {
|
||||
if self.from.attributes == self.to.attributes {
|
||||
layoutToAttribute = layoutFromAttribute
|
||||
} else if layoutToAttributes.count > 0 {
|
||||
layoutToAttribute = layoutToAttributes[0]
|
||||
} else {
|
||||
layoutToAttribute = layoutFromAttribute
|
||||
|
|
Loading…
Reference in New Issue