We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using Xcode 9.2 and 9.3 I get a Swift Compile error in the BasePageCollectionCell.swift Occurs in line 179 and 189
Expression type '[(NSLayoutAttribute, Double)]' is ambiguous without more context
The text was updated successfully, but these errors were encountered:
declaring the constraints arrays inline doesn't help transform the Double and Int Into the property type.
Double
Int
Here's a fix:
// create constraints 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 $0.constant = frontViewConstraint.constant * info.scale return } } } 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 return } }
Sorry, something went wrong.
Having the same issue. Is ist possible to fix this in the repository?
f077711
No branches or pull requests
Using Xcode 9.2 and 9.3 I get a Swift Compile error in the BasePageCollectionCell.swift
Occurs in line 179 and 189
Expression type '[(NSLayoutAttribute, Double)]' is ambiguous without more context
The text was updated successfully, but these errors were encountered: