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
private func updateAlignment(_ start : ConstraintMakerExtendable, _ end : ConstraintMakerExtendable, _ center : ConstraintMakerExtendable, _ child : KittenItem){ switch child.alignment{ case .start: start.equalToSuperview().offset(child.sideStartPadding) end.lessThanOrEqualToSuperview().offset(-child.sideEndPadding) case .end: start.greaterThanOrEqualToSuperview().offset(child.sideStartPadding) end.equalToSuperview().offset(-child.sideEndPadding) case .center: center.equalToSuperview() start.greaterThanOrEqualToSuperview().offset(child.sideStartPadding) end.lessThanOrEqualToSuperview().offset(-child.sideEndPadding) case .parent: start.equalToSuperview().offset(child.sideStartPadding) <-- at this end.equalToSuperview().offset(-child.sideEndPadding) } }
"Expected superview but found nil when attempting make constraint equalToSuperview." Only in release, debug version all ok. iOS 13.4.1
equalToSuperview
The text was updated successfully, but these errors were encountered:
Do you have any sample code / source that i can re-produce this issue?
Sorry, something went wrong.
No branches or pull requests
private func updateAlignment(_ start : ConstraintMakerExtendable, _ end : ConstraintMakerExtendable, _ center : ConstraintMakerExtendable, _ child : KittenItem){
switch child.alignment{
case .start:
start.equalToSuperview().offset(child.sideStartPadding)
end.lessThanOrEqualToSuperview().offset(-child.sideEndPadding)
case .end:
start.greaterThanOrEqualToSuperview().offset(child.sideStartPadding)
end.equalToSuperview().offset(-child.sideEndPadding)
case .center:
center.equalToSuperview()
start.greaterThanOrEqualToSuperview().offset(child.sideStartPadding)
end.lessThanOrEqualToSuperview().offset(-child.sideEndPadding)
case .parent:
start.equalToSuperview().offset(child.sideStartPadding) <-- at this
end.equalToSuperview().offset(-child.sideEndPadding)
}
}
"Expected superview but found nil when attempting make constraint
equalToSuperview
."Only in release, debug version all ok. iOS 13.4.1
The text was updated successfully, but these errors were encountered: