Skip to content

Commit

Permalink
Fixes #72
Browse files Browse the repository at this point in the history
fix ambiguous NSLayoutAttribute compile error
  • Loading branch information
0ber committed Aug 1, 2018
1 parent 8c2a5bb commit f077711
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,8 @@ extension BasePageCollectionCell {
contentView.insertSubview(shadow, belowSubview: view)

// create constraints
let frontViewlayoutAttribs:[(NSLayoutAttribute, CGFloat)] = [(NSLayoutAttribute.width, 0.8), (NSLayoutAttribute.height, 0.9)]

for info: (attribute: NSLayoutAttribute, scale: CGFloat) in frontViewlayoutAttribs {
let sizeConstaints: [(NSLayoutAttribute, CGFloat)] = [(NSLayoutAttribute.width, 0.8), (NSLayoutAttribute.height, 0.9)]
for info: (attribute: NSLayoutAttribute, scale: CGFloat) in sizeConstaints {
if let frontViewConstraint = view.getConstraint(info.attribute) {
shadow >>>- {
$0.attribute = info.attribute
Expand All @@ -188,9 +187,8 @@ extension BasePageCollectionCell {
}
}

let contentViewlayoutAttribs:[(NSLayoutAttribute, CGFloat)] = [(NSLayoutAttribute.centerX, 0), (NSLayoutAttribute.centerY, 30)]

for info: (attribute: NSLayoutAttribute, offset: CGFloat) in contentViewlayoutAttribs {
let centerConstraints: [(NSLayoutAttribute, CGFloat)] = [(NSLayoutAttribute.centerX, 0), (NSLayoutAttribute.centerY, 30)]
for info: (attribute: NSLayoutAttribute, offset: CGFloat) in centerConstraints {
(contentView, shadow, view) >>>- {
$0.attribute = info.attribute
$0.constant = info.offset
Expand Down

0 comments on commit f077711

Please sign in to comment.